> -----邮件原件----- > 发件人: Daniel Borkmann [mailto:[email protected]] > 发送时间: 2018年4月17日 22:11 > 收件人: Li,Rongqing <[email protected]> > 抄送: [email protected]; [email protected]; [email protected]; > [email protected] > 主题: Re: [PATCH][net-next] net: ip tos cgroup > > On 04/17/2018 05:36 AM, Li RongQing wrote: > > ip tos segment can be changed by setsockopt(IP_TOS), or by iptables; > > this patch creates a new method to change socket tos segment of > > processes based on cgroup > > > > The usage: > > > > 1. mount ip_tos cgroup, and setting tos value > > mount -t cgroup -o ip_tos ip_tos /cgroups/tos > > echo tos_value >/cgroups/tos/ip_tos.tos > > 2. then move processes to cgroup, or create processes in cgroup > > > > Signed-off-by: jimyan <[email protected]> > > Signed-off-by: Li RongQing <[email protected]> > > This functionality is already possible through the help of BPF programs > attached to cgroups, have you had a chance to look into that? >
I think this method is easier to use than BPF, and more efficient -RongQing
