diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-05-22 19:47:54 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-05-29 13:46:18 +0300 |
commit | 347b408d59e7eadcd09f97eba96fa4c270eb3b23 (patch) | |
tree | 353c72eb5a23e384880154db4019d1f40068ecfd /net/netfilter/nft_set_rbtree.c | |
parent | 2b664957c27fe708035b217c908edd1048be355e (diff) | |
download | linux-347b408d59e7eadcd09f97eba96fa4c270eb3b23.tar.xz |
netfilter: nf_tables: pass set description to ->privsize
The new non-resizable hashtable variant needs this to calculate the
size of the bucket array.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_set_rbtree.c')
-rw-r--r-- | net/netfilter/nft_set_rbtree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netfilter/nft_set_rbtree.c b/net/netfilter/nft_set_rbtree.c index 29d41d378339..491e805d3ca2 100644 --- a/net/netfilter/nft_set_rbtree.c +++ b/net/netfilter/nft_set_rbtree.c @@ -251,7 +251,8 @@ cont: read_unlock_bh(&priv->lock); } -static unsigned int nft_rbtree_privsize(const struct nlattr * const nla[]) +static unsigned int nft_rbtree_privsize(const struct nlattr * const nla[], + const struct nft_set_desc *desc) { return sizeof(struct nft_rbtree); } |