[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>
Showing
- include/net/inet_frag.h 6 additions, 2 deletionsinclude/net/inet_frag.h
- include/net/netns/ipv4.h 4 additions, 0 deletionsinclude/net/netns/ipv4.h
- include/net/netns/ipv6.h 1 addition, 0 deletionsinclude/net/netns/ipv6.h
- net/ipv4/inet_fragment.c 15 additions, 12 deletionsnet/ipv4/inet_fragment.c
- net/ipv4/ip_fragment.c 5 additions, 3 deletionsnet/ipv4/ip_fragment.c
- net/ipv6/netfilter/nf_conntrack_reasm.c 2 additions, 1 deletionnet/ipv6/netfilter/nf_conntrack_reasm.c
- net/ipv6/reassembly.c 5 additions, 3 deletionsnet/ipv6/reassembly.c
Loading
Please register or sign in to comment