netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Networking cgroup controller
@ 2016-08-11  0:53 Anoop Naravaram
  2016-08-11  0:53 ` [PATCH 1/5] net: create the networking " Anoop Naravaram
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Anoop Naravaram @ 2016-08-11  0:53 UTC (permalink / raw)
  To: corbet, tj, lizefan, hannes, davem, kuznet, jmorris, yoshfuji,
	kaber, linux-doc, cgroups, netdev
  Cc: edumazet, maheshb, weiwan, tom, Anoop Naravaram

This patchset introduces a cgroup controller for the networking subsystem as a
whole. As of now, this controller will be used for:

* Limiting the specific ports that a process in a cgroup is allowed to bind
  to or listen on. For example, you can say that all the processes in a
  cgroup can only bind to ports 1000-2000, and listen on ports 1000-1100, which
  guarantees that the remaining ports will be available for other processes.

* Restricting which DSCP values processes can use with their sockets. For
  example, you can say that all the processes in a cgroup can only send
  packets with a DSCP tag between 48 and 63 (corresponding to TOS values of
  192 to 255).

* Limiting the total number of udp ports that can be used by a process in a
  cgroup. For example, you can say that all the processes in one cgroup are
  allowed to use a total of up to 100 udp ports. Since the total number of udp
  ports that can be used by all processes is limited, this is useful for
  rationing out the ports to different process groups.

In the future, more networking-related properties may be added to this
controller.

Anoop Naravaram (5):
  net: create the networking cgroup controller
  net: add bind/listen ranges to net cgroup
  net: add udp limit to net cgroup
  net: add dscp ranges to net cgroup
  net: add test for net cgroup

 Documentation/cgroup-v1/net.txt   |  95 +++++
 include/linux/cgroup_subsys.h     |   4 +
 include/net/net_cgroup.h          | 103 ++++++
 net/Kconfig                       |  10 +
 net/core/Makefile                 |   1 +
 net/core/net_cgroup.c             | 706 ++++++++++++++++++++++++++++++++++++++
 net/ipv4/af_inet.c                |   8 +
 net/ipv4/inet_connection_sock.c   |   7 +
 net/ipv4/ip_sockglue.c            |  13 +
 net/ipv4/udp.c                    |   8 +
 net/ipv6/af_inet6.c               |   7 +
 net/ipv6/datagram.c               |   9 +
 net/ipv6/ipv6_sockglue.c          |   8 +
 scripts/cgroup/net_cgroup_test.py | 359 +++++++++++++++++++
 14 files changed, 1338 insertions(+)
 create mode 100644 Documentation/cgroup-v1/net.txt
 create mode 100644 include/net/net_cgroup.h
 create mode 100644 net/core/net_cgroup.c
 create mode 100755 scripts/cgroup/net_cgroup_test.py

-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2016-08-25 21:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11  0:53 [PATCH 0/5] Networking cgroup controller Anoop Naravaram
2016-08-11  0:53 ` [PATCH 1/5] net: create the networking " Anoop Naravaram
2016-08-11  0:53 ` [PATCH 2/5] net: add bind/listen ranges to net cgroup Anoop Naravaram
2016-08-13  4:29   ` Alexei Starovoitov
2016-08-15 19:05     ` Mahesh Bandewar
2016-08-17  3:02       ` Alexei Starovoitov
2016-08-11  0:53 ` [PATCH 4/5] net: add dscp " Anoop Naravaram
2016-08-11  0:53 ` [PATCH 5/5] net: add test for " Anoop Naravaram
2016-08-13  4:38   ` Alexei Starovoitov
     [not found] ` <1470876798-4024-1-git-send-email-anaravaram-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-08-11  0:53   ` [PATCH 3/5] net: add udp limit to " Anoop Naravaram
     [not found]     ` <1470876798-4024-4-git-send-email-anaravaram-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-08-13  4:35       ` Alexei Starovoitov
2016-08-15 19:16         ` Mahesh Bandewar
2016-08-23  7:37   ` [PATCH 0/5] Networking cgroup controller Parav Pandit
2016-08-23  8:49 ` Parav Pandit
2016-08-25  0:28   ` Mahesh Bandewar (महेश बंडेवार)
2016-08-24 21:03 ` Tejun Heo
2016-08-25 15:54   ` Mahesh Bandewar (महेश बंडेवार)
     [not found]     ` <CAF2d9jjXxjgJU1VWDERKkv4LRvmhpjpyx7Dx76egQx43aaXtmQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-25 16:09       ` Tejun Heo
2016-08-25 16:11         ` Tejun Heo
2016-08-25 18:53         ` Mahesh Bandewar (महेश बंडेवार)
2016-08-25 18:04     ` Alexei Starovoitov
2016-08-25 18:56       ` Mahesh Bandewar (महेश बंडेवार)
2016-08-25 21:29         ` Alexei Starovoitov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).