]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: Remove redundant hw refresh bit
authorRoi Dayan <roid@nvidia.com>
Mon, 10 May 2021 11:50:24 +0000 (14:50 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 13 May 2021 23:34:26 +0000 (01:34 +0200)
commitcad1732afa56fef1d6f09976d9205a08e80f5160
treedecfb3e98bc28fb793146ec99f02ec1a6007ce64
parentc2882c616f21e1470a3b4a3e034220a108afa71e
netfilter: flowtable: Remove redundant hw refresh bit

Offloading conns could fail for multiple reasons and a hw refresh bit is
set to try to reoffload it in next sw packet.
But it could be in some cases and future points that the hw refresh bit
is not set but a refresh could succeed.
Remove the hw refresh bit and do offload refresh if requested.
There won't be a new work entry if a work is already pending
anyway as there is the hw pending bit.

Fixes: fc89c6b44336 ("net/sched: act_ct: Support refreshing the flow table entries")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_core.c
net/netfilter/nf_flow_table_offload.c