Skip to content
Snippets Groups Projects
Commit f034b5d4 authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent 8f126e37
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment