sfc: keep alive neighbour entries while a TC encap action is using them
authorEdward Cree <ecree.xilinx@gmail.com>
Wed, 21 Jun 2023 12:15:04 +0000 (13:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Jun 2023 02:54:14 +0000 (19:54 -0700)
commit9a14f2e3dab106df7f27d1730cc540247317d4b9
tree2bf42a0817d2322050f1f81f8497b5b62d3c0b90
parent2555f35a4f428a9bfdf09aa0459dbfdf59a24a9a
sfc: keep alive neighbour entries while a TC encap action is using them

When processing counter updates, if any action set using the newly
 incremented counter includes an encap action, prod the corresponding
 neighbouring entry to indicate to the neighbour cache that the entry
 is still in use and passing traffic.

Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://lore.kernel.org/r/20230621121504.17004-1-edward.cree@amd.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/tc.c
drivers/net/ethernet/sfc/tc.h
drivers/net/ethernet/sfc/tc_counters.c
drivers/net/ethernet/sfc/tc_counters.h