diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-12-18 07:45:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 23:59:11 +0100 |
commit | 7b21e09d1c17ef0296ec5a6df231a6c5c87b2fd7 (patch) | |
tree | 97df5c5e4b8a9cc6a76cc432b39b321542634f44 /net/ipv4 | |
parent | [NETFILTER]: xt_hashlimit: speedup hash_dst() (diff) | |
download | linux-7b21e09d1c17ef0296ec5a6df231a6c5c87b2fd7.tar.xz linux-7b21e09d1c17ef0296ec5a6df231a6c5c87b2fd7.zip |
[NETFILTER]: xt_hashlimit: reduce overhead without IPv6
This patch generalizes the (CONFIG_IP6_NF_IPTABLES || CONFIG_IP6_NF_IPTABLES_MODULE)
test done in hashlimit_init_dst() to all the xt_hashlimit module.
This permits a size reduction of "struct dsthash_dst". This saves memory and
cpu for IPV4 only hosts.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions