]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ip6mr: move unres_queue and timer to per-namespace data
authorPatrick McHardy <kaber@trash.net>
Tue, 11 May 2010 12:40:48 +0000 (14:40 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 11 May 2010 12:40:48 +0000 (14:40 +0200)
commit59acd0414edf1c8b086afab2a330f961e82ac167
tree69aea7351adf2ae537e4d6ec76e1cc0799a16593
parentc16c5eac4bdbde8b8fe3c405bd9a62cc12eaff11
ipv6: ip6mr: move unres_queue and timer to per-namespace data

The unres_queue is currently shared between all namespaces. Following patches
will additionally allow to create multiple multicast routing tables in each
namespace. Having a single shared queue for all these users seems to excessive,
move the queue and the cleanup timer to the per-namespace data to unshare it.

As a side-effect, this fixes a bug in the seq file iteration functions: the
first entry returned is always from the current namespace, entries returned
after that may belong to any namespace.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netns/ipv6.h
net/ipv6/ip6mr.c