netfilter: flowtable: populate addr_type mask
commitac10143c4644001d0d57ac79cad3a34c217f8c7f
authorEdward Cree <ecree@solarflare.com>
Thu, 19 Mar 2020 19:37:21 +0000 (19 19:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:00:16 +0000 (1 11:00 +0200)
tree799b21e5381e07f271b506401bafd02acfd4bb28
parent757818ba616b7c14d5a4429669f3d28d4687c600
netfilter: flowtable: populate addr_type mask

commit 15ff197237e76c4dab06b7b518afaa4ebb1c43e0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_flow_table_offload.c