netfilter: flowtable: Fix missing flush hardware on table free
authorPaul Blakey <paulb@mellanox.com>
Thu, 30 Jan 2020 16:04:36 +0000 (18:04 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 31 Jan 2020 18:31:41 +0000 (19:31 +0100)
commit0f34f30a1be80f3f59efeaab596396bc698e7337
tree063c1dbcf9bc151bb47a85c45dc5b9af67be7ff1
parent91bfaa15a379e9af24f71fb4ee08d8019b6e8ec7
netfilter: flowtable: Fix missing flush hardware on table free

If entries exist when freeing a hardware offload enabled table,
we queue work for hardware while running the gc iteration.

Execute it (flush) after queueing.

Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c