Skip to content

Commit 15ff197

Browse files
ecree-solarflareummakynes
authored andcommitted
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: c29f74e ("netfilter: nf_flow_table: hardware offload support") Signed-off-by: Edward Cree <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent c921ffe commit 15ff197

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nf_flow_table_offload.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ static int nf_flow_rule_match(struct nf_flow_match *match,
8787
default:
8888
return -EOPNOTSUPP;
8989
}
90+
mask->control.addr_type = 0xffff;
9091
match->dissector.used_keys |= BIT(key->control.addr_type);
9192
mask->basic.n_proto = 0xffff;
9293

0 commit comments

Comments
 (0)