mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 23:40:55 +07:00
5bc1421e34
This patch adds in the infrastructure code to create the network priority cgroup. The cgroup, in addition to the standard processes file creates two control files: 1) prioidx - This is a read-only file that exports the index of this cgroup. This is a value that is both arbitrary and unique to a cgroup in this subsystem, and is used to index the per-device priority map 2) priomap - This is a writeable file. On read it reports a table of 2-tuples <name:priority> where name is the name of a network interface and priority is indicates the priority assigned to frames egresessing on the named interface and originating from a pid in this cgroup This cgroup allows for skb priority to be set prior to a root qdisc getting selected. This is benenficial for DCB enabled systems, in that it allows for any application to use dcb configured priorities so without application modification Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: John Fastabend <john.r.fastabend@intel.com> CC: Robert Love <robert.w.love@intel.com> CC: "David S. Miller" <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
75 lines
816 B
C
75 lines
816 B
C
/* Add subsystem definitions of the form SUBSYS(<name>) in this
|
|
* file. Surround each one by a line of comment markers so that
|
|
* patches don't collide
|
|
*/
|
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CPUSETS
|
|
SUBSYS(cpuset)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_DEBUG
|
|
SUBSYS(debug)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_SCHED
|
|
SUBSYS(cpu_cgroup)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_CPUACCT
|
|
SUBSYS(cpuacct)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_MEM_RES_CTLR
|
|
SUBSYS(mem_cgroup)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_DEVICE
|
|
SUBSYS(devices)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_FREEZER
|
|
SUBSYS(freezer)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_NET_CLS_CGROUP
|
|
SUBSYS(net_cls)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_BLK_CGROUP
|
|
SUBSYS(blkio)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_CGROUP_PERF
|
|
SUBSYS(perf)
|
|
#endif
|
|
|
|
/* */
|
|
|
|
#ifdef CONFIG_NETPRIO_CGROUP
|
|
SUBSYS(net_prio)
|
|
#endif
|
|
|
|
/* */
|