]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_set_hash: add lookup variant for fixed size hashtable
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 May 2017 16:48:09 +0000 (17:48 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 10:46:22 +0000 (12:46 +0200)
commitac68ab29f4d8827b1c064221791bc9d42cc31850
treefed5a2730932691d67e357a7268f08f5e6064c2f
parent1f92da0c50de540562412c3b4699ef20ac8c9b08
netfilter: nft_set_hash: add lookup variant for fixed size hashtable

This patch provides a faster variant of the lookup function for 2 and 4
byte keys. Optimizing the one byte case is not worth, as the set backend
selection will always select the bitmap set type for such case.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_hash.c