diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-27 19:43:06 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-30 03:05:39 +0300 |
commit | d56aab2625f7bee79686566d3f6ad639d694b8cd (patch) | |
tree | b4f8f2fab69017da7b64d62f0a8c8597e8746c4c /net/netfilter/nf_tables_api.c | |
parent | 8548bde9890fd0316f49d3c6937573c18261f68f (diff) | |
download | linux-d56aab2625f7bee79686566d3f6ad639d694b8cd.tar.xz |
netfilter: nf_tables: skip set types that do not support for expressions
The bitmap set does not support for expressions, skip it from the
estimation step.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r-- | net/netfilter/nf_tables_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index c1e04ac21392..8a73adfab7ff 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -4032,6 +4032,9 @@ static int nf_tables_newset(struct net *net, struct sock *nlsk, return err; } + if (nla[NFTA_SET_EXPR]) + desc.expr = true; + table = nft_table_lookup(net, nla[NFTA_SET_TABLE], family, genmask); if (IS_ERR(table)) { NL_SET_BAD_ATTR(extack, nla[NFTA_SET_TABLE]); |