Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1275654

Re: [PATCH] cgroups: Allow dynamically changing net_classid

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] cgroups: Allow dynamically changing net_classid
Date 2015-11-23 18:20 +0100
Message-ID <qy2Wu-4QZ-21@gated-at.bofh.it> (permalink)
References <qx0k2-3Cd-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Nina Schiff <ninasc@fb.com>
Date: Fri, 20 Nov 2015 12:16:10 -0800

> The classid of a process is changed either when a process is moved to
> or from a cgroup or when the net_cls.classid file is updated.
> Previously net_cls only supported propogating these changes to the
> cgroup's related sockets when a process was added or removed from the
> cgroup. This means it was neccessary to remove and re-add all processes
> to a cgroup in order to update its classid. This change introduces
> support for doing this dynamically - i.e. when the value is changed in
> the net_cls_classid file, this will also trigger an update to the
> classid associated with all sockets controlled by the cgroup.
> This mimics the behaviour of other cgroup subsystems.
> net_prio circumvents this issue by storing an index into a table with
> each socket (and so any updates to the table, don't require updating
> the value associated with the socket). net_cls, however, passes the
> socket the classid directly, and so this additional step is needed.
> 
> Signed-off-by: Nina Schiff <ninasc@fb.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] cgroups: Allow dynamically changing net_classid Nina Schiff <ninasc@fb.com> - 2015-11-20 21:20 +0100
  Re: [PATCH] cgroups: Allow dynamically changing net_classid David Miller <davem@davemloft.net> - 2015-11-23 18:20 +0100

csiph-web