diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-09-23 10:53:02 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-09-30 09:35:20 +0200 |
| commit | 7c549fb7eecd01fdba7c0d12c01da876ef8a3214 (patch) | |
| tree | 39e2c07a3e3714e022e94eeaa05c27493263224f /tools/lib/python/kdoc | |
| parent | 16d464013ec2267b00a83f4bfbb97b3ecc63bfa7 (diff) | |
| download | linux-next-7c549fb7eecd01fdba7c0d12c01da876ef8a3214.tar.gz linux-next-7c549fb7eecd01fdba7c0d12c01da876ef8a3214.zip | |
netfilter: flowtable: generalize pending status bit
Rename NF_FLOW_HW_PENDING to NF_FLOW_PENDING and use it to inhibit the
flowtable GC worker until pending hw offload work has been completed.
Apparently, nf_flow_offload_stats() can schedule work to retrieve stats
while the flow is being removed by GC.
And this bit can also be used in a follow up patch to disable GC until
the flow has been fully added in both directions.
Revert the reordering done in commit d644b23afe1e ("netfilter:
flowtable: publish HW_DEAD after worker is done") to prevent a race
between GC and hw offload handler.
Fixes: 2c8897953f3b ("netfilter: flowtable: Add pending bit for offload work")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
