diff options
author | Edward Cree <ecree@solarflare.com> | 2020-03-19 20:37:21 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-19 21:20:04 +0100 |
commit | 15ff197237e76c4dab06b7b518afaa4ebb1c43e0 (patch) | |
tree | 49ac53e8ea9348653b7a008e213ed6c88a397540 /net | |
parent | netfilter: flowtable: Fix flushing of offloaded flows on free (diff) | |
download | linux-15ff197237e76c4dab06b7b518afaa4ebb1c43e0.tar.xz linux-15ff197237e76c4dab06b7b518afaa4ebb1c43e0.zip |
netfilter: flowtable: populate addr_type mask
nf_flow_rule_match() sets control.addr_type in key, so needs to also set
the corresponding mask. An exact match is wanted, so mask is all ones.
Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_flow_table_offload.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_flow_table_offload.c b/net/netfilter/nf_flow_table_offload.c index 06f00cdc3891..f2c22c682851 100644 --- a/net/netfilter/nf_flow_table_offload.c +++ b/net/netfilter/nf_flow_table_offload.c @@ -87,6 +87,7 @@ static int nf_flow_rule_match(struct nf_flow_match *match, default: return -EOPNOTSUPP; } + mask->control.addr_type = 0xffff; match->dissector.used_keys |= BIT(key->control.addr_type); mask->basic.n_proto = 0xffff; |