commit | f034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@sunset.davemloft.net> | Thu Aug 24 03:08:07 2006 -0700 |
committer | David S. Miller <davem@sunset.davemloft.net> | Fri Sep 22 15:08:41 2006 -0700 |
tree | e166f1e87606f7e53a78cac543284c3484481727 | |
parent | 8f126e37c0b250310a48a609bedf92a19a5559ec [diff] |
[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>