]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_ct: Fix flow table lookup after ct clear or switching zones
authorPaul Blakey <paulb@nvidia.com>
Thu, 17 Feb 2022 09:30:48 +0000 (11:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Feb 2022 11:02:48 +0000 (11:02 +0000)
commit3d9f772570795e3084756a5bbe080027973123da
tree04e3fa251f4da5a120e03ff4a88476fdc13cae87
parent069af1f65ae89e36183cbd166af9fba86bc8a3e5
net/sched: act_ct: Fix flow table lookup after ct clear or switching zones

Flow table lookup is skipped if packet either went through ct clear
action (which set the IP_CT_UNTRACKED flag on the packet), or while
switching zones and there is already a connection associated with
the packet. This will result in no SW offload of the connection,
and the and connection not being removed from flow table with
TCP teardown (fin/rst packet).

To fix the above, remove these unneccary checks in flow
table lookup.

Fixes: a72752749a76 ("net/sched: act_ct: Software offload of established flows")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ct.c