projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c921ffe
)
netfilter: flowtable: populate addr_type mask
author
Edward Cree
<ecree@solarflare.com>
Thu, 19 Mar 2020 19:37:21 +0000
(19:37 +0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 19 Mar 2020 20:20:04 +0000
(21:20 +0100)
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>
net/netfilter/nf_flow_table_offload.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_flow_table_offload.c
b/net/netfilter/nf_flow_table_offload.c
index 06f00cdc389100fb197abba44e7fd208d4da23b8..f2c22c682851b90c87f89e159e958c75d103356b 100644
(file)
--- 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;