From: David S. Miller Date: Thu, 24 Aug 2006 10:08:07 +0000 (-0700) Subject: [XFRM]: Dynamic xfrm_state hash table sizing. X-Git-Tag: v2.6.19-rc1~1272^2~140 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f034b5d4efdfe0fb9e2a1ce1d95fa7914f24de49;p=pandora-kernel.git [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 --- Reading git-diff-tree failed