]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: per netns fib6 walkers
authorMichal Kubeček <mkubecek@suse.cz>
Tue, 8 Mar 2016 13:44:35 +0000 (14:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Mar 2016 20:16:51 +0000 (15:16 -0500)
commit503b95d2c1588d2c6e17920ae23b3bdf96a6ee11
tree196c6d1b32fe34fa44f7bc9e164b6af2d0ff25ec
parent96a7876b358a67ba6921f6c0ba6d4772e379d371
ipv6: per netns fib6 walkers

The IPv6 FIB data structures are separated per network namespace but
there is still only one global walkers list and one global walker list
lock. This means changes in one namespace unnecessarily interfere with
walkers in other namespaces.

Replace the global list with per-netns lists (and give each its own
lock).

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv6.h
net/ipv6/ip6_fib.c