]> git.baikalelectronics.ru Git - kernel.git/commit
[NETNS][FRAGS]: Make the inet_frag_queue lookup work in namespaces.
authorPavel Emelyanov <xemul@openvz.org>
Tue, 22 Jan 2008 14:02:14 +0000 (06:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:34 +0000 (15:10 -0800)
commit2ed9025ad567290dfa42d492f169ef6dfeb09c45
tree26be1582b59956c389a667d5426fdc538072795b
parentc43464a011f53d9b43a15b7df64bc70f1a28dc86
[NETNS][FRAGS]: Make the inet_frag_queue lookup work in namespaces.

Since fragment management code is consolidated, we cannot have the
pointer from inet_frag_queue to struct net, since we must know what
king of fragment this is.

So, I introduce the netns_frags structure. This one is currently
empty, but will be eventually filled with per-namespace
attributes. Each inet_frag_queue is tagged with this one.

The conntrack_reasm is not "netns-izated", so it has one static
netns_frags instance to keep working in init namespace.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_frag.h
include/net/netns/ipv4.h
include/net/netns/ipv6.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c