From: Patrick McHardy Date: Sun, 8 Jul 2007 05:28:14 +0000 (-0700) Subject: [NETFILTER]: nf_conntrack: use hlists for conntrack hash X-Git-Tag: v2.6.23-rc1~1109^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f205c5e0c28aa7e0fb6eaaa66e97928f9d9e6994;p=pandora-kernel.git [NETFILTER]: nf_conntrack: use hlists for conntrack hash Convert conntrack hash to hlists to reduce its size and cache footprint. Since the default hashsize to max. entries ratio sucks (1:16), this patch doesn't reduce the amount of memory used for the hash by default, but instead uses a better ratio of 1:8, which results in the same max. entries value. One thing worth noting is early_drop. It really should use LRU, so it now has to iterate over the entire chain to find the last unconfirmed entry. Since chains shouldn't be very long and the entire operation is very rare this shouldn't be a problem. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed