[XFRM]: Dynamic xfrm_state hash table sizing.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 24 Aug 2006 10:08:07 +0000 (03:08 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:08:41 +0000 (15:08 -0700)
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>

No differences found