]> err.no Git - linux-2.6/commit
[NETNS][FRAGS]: Make the LRU list per namespace.
authorPavel Emelyanov <xemul@openvz.org>
Tue, 22 Jan 2008 14:11:48 +0000 (06:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:39 +0000 (15:10 -0800)
commit3140c25c82106645a6b1fc469dab7006a1d09fd0
treecbf97e7138610c1f1f0ad4528d59b4bbd14039c7
parent3b4bc4a2bfe80d01ebd4f2b6dcc58986c970ed16
[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>
include/net/inet_frag.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c
net/ipv6/netfilter/nf_conntrack_reasm.c
net/ipv6/reassembly.c