]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: Fix flushing of offloaded flows on free
authorPaul Blakey <paulb@mellanox.com>
Thu, 19 Mar 2020 09:52:25 +0000 (11:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Mar 2020 20:05:30 +0000 (21:05 +0100)
commitec838bd0ef02ce582954ebf7c4fdb5e4dd60342f
tree6939b433bbcecd8d5c0a85d20ae4a901b674dc68
parent11cb36a31fca9429c90a0028b6f9d575150a9a79
netfilter: flowtable: Fix flushing of offloaded flows on free

Freeing a flowtable with offloaded flows, the flow are deleted from
hardware but are not deleted from the flow table, leaking them,
and leaving their offload bit on.

Add a second pass of the disabled gc to delete the these flows from
the flow table before freeing it.

Fixes: 3029814930c4 ("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