[NETNS][FRAGS]: Make the LRU list per namespace.
The inet_frags.lru_list is used for evicting only, so we have to make it per-namespace, to evict only those fragments, who's namespace exceeded its high threshold, but not the whole hash. Besides, this helps to avoid long loops in evictor. The spinlock is not per-namespace because it protects the hash table as well, which is global. Signed-off-by:Pavel Emelyanov <xemul@openvz.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/inet_frag.h 1 addition, 1 deletioninclude/net/inet_frag.h
- net/ipv4/inet_fragment.c 4 additions, 4 deletionsnet/ipv4/inet_fragment.c
- net/ipv4/ip_fragment.c 1 addition, 1 deletionnet/ipv4/ip_fragment.c
- net/ipv6/netfilter/nf_conntrack_reasm.c 1 addition, 1 deletionnet/ipv6/netfilter/nf_conntrack_reasm.c
- net/ipv6/reassembly.c 1 addition, 1 deletionnet/ipv6/reassembly.c
Loading
Please register or sign in to comment