]> granicus.if.org Git - ipset/commit
Convert hash types from chash to ahash.
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 10 Dec 2010 12:54:51 +0000 (13:54 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 10 Dec 2010 12:54:51 +0000 (13:54 +0100)
commit5a5c5896d89670a853c5b6557c1480ac0e239f86
tree8f0074dd5e986d2c1813e410bfaa278e19bda1ac
parent4150bd9b04e91e6e5b24b918f5d1c4c338a0755c
Convert hash types from chash to ahash.

Instead of the cache friendly hashing, use the array based hashing.
According to my tests the latter uses less memory, faster at lookup and
deletion, and only slower at insertion.
kernel/include/linux/netfilter/ipset/ip_set_ahash.h [new file with mode: 0644]
kernel/ip_set_hash_ip.c
kernel/ip_set_hash_ipport.c
kernel/ip_set_hash_ipportip.c
kernel/ip_set_hash_ipportnet.c
kernel/ip_set_hash_net.c
kernel/ip_set_hash_netport.c