]> git.baikalelectronics.ru Git - kernel.git/commit
netprio: use css ID instead of cgroup ID
authorTejun Heo <tj@kernel.org>
Mon, 4 Nov 2019 23:54:29 +0000 (15:54 -0800)
committerTejun Heo <tj@kernel.org>
Tue, 12 Nov 2019 16:18:03 +0000 (08:18 -0800)
commit703041e3afc40daca45f2673ff93485b4f991557
treeadf1622e1ad7b8de472121a8e78207d2c85c53f7
parenta871db13554ce651fff5ee8ee540129e82408d86
netprio: use css ID instead of cgroup ID

netprio uses cgroup ID to index the priority mapping table.  This is
currently okay as cgroup IDs are allocated using idr and packed.
However, cgroup IDs will be changed to use full 64bit range and won't
be packed making this impractical.  netprio doesn't care what type of
IDs it uses as long as they can identify the controller instances and
are packed.  Let's switch to css IDs instead of cgroup IDs.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Namhyung Kim <namhyung@kernel.org>
include/net/netprio_cgroup.h
net/core/netprio_cgroup.c