summaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_policy.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-08-24 12:08:07 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-23 00:08:41 +0200
commitf034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49 (patch)
treee166f1e87606f7e53a78cac543284c3484481727 /net/ipv4/xfrm4_policy.c
parent[XFRM]: Convert xfrm_state hash linkage to hlists. (diff)
downloadlinux-f034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49.tar.xz
linux-f034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49.zip
[XFRM]: Dynamic xfrm_state hash table sizing.
The grow algorithm is simple, we grow if: 1) we see a hash chain collision at insert, and 2) we haven't hit the hash size limit (currently 1*1024*1024 slots), and 3) the number of xfrm_state objects is > the current hash mask All of this needs some tweaking. Remove __initdata from "hashdist" so we can use it safely at run time. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
0 files changed, 0 insertions, 0 deletions