ipv4: ipmr: move unres_queue and timer to per-namespace data
authorPatrick McHardy <kaber@trash.net>
Tue, 13 Apr 2010 05:03:19 +0000 (05:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 21:49:32 +0000 (14:49 -0700)
commite258beb22f4d3ea3dc88586ffc9c990d0eb03380
tree7bd4dc984757894cbfb355189e9172a4a566596c
parentf74e49b5613206fb18468bdc9509a1db746aa01b
ipv4: ipmr: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/ipv4.h
net/ipv4/ipmr.c