]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nft_set_hash: add nft_hash_buckets()
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 May 2017 16:47:56 +0000 (17:47 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 10:46:19 +0000 (12:46 +0200)
commit2111515abc46cb3e18b22d8551067029acfd1f55
treec5d35f1856b9007aa4c2eedd71923cb790cb40f7
parent347b408d59e7eadcd09f97eba96fa4c270eb3b23
netfilter: nft_set_hash: add nft_hash_buckets()

Add nft_hash_buckets() helper function to calculate the number of
hashtable buckets based on the elements. This function can be reused
from the follow up patch to add non-resizable hashtables.

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