Re: [PATCH] net: ip tos cgroup

2018-04-01 Thread David Miller
From: Li RongQing Date: Mon, 2 Apr 2018 11:51:48 +0800 > 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 tos_cgroup, and setting tos value > mo

[PATCH] net: ip tos cgroup

2018-04-01 Thread Li RongQing
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 tos_cgroup, and setting tos value mount -t cgroup -o ip_tos ip_tos /cgroups/tos echo tos-value >/cgroups/t