netfilter: flowtable: Fix setting forgotten NF_FLOW_HW_DEAD flag
authorPaul Blakey <paulb@mellanox.com>
Thu, 30 Jan 2020 16:04:37 +0000 (18:04 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 Jan 2020 18:31:42 +0000 (19:31 +0100)
During the refactor this was accidently removed.

Fixes: ae29045018c8 ("netfilter: flowtable: add nf_flow_offload_tuple() helper")
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_offload.c

index c8b70ffeef0cca7f9044d0adc89ade714842e5db..83e1db37c3b041f7872624d05dddd78a8b980404 100644 (file)
@@ -675,6 +675,7 @@ static void flow_offload_work_del(struct flow_offload_work *offload)
 {
        flow_offload_tuple_del(offload, FLOW_OFFLOAD_DIR_ORIGINAL);
        flow_offload_tuple_del(offload, FLOW_OFFLOAD_DIR_REPLY);
+       set_bit(NF_FLOW_HW_DEAD, &offload->flow->flags);
 }
 
 static void flow_offload_tuple_stats(struct flow_offload_work *offload,