]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: flowtable: cache info of last offload
authorVlad Buslov <vladbu@nvidia.com>
Wed, 1 Feb 2023 16:30:57 +0000 (17:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:34 +0000 (17:10 +0100)
commit8b160f2fba777a27b912bcd2488e95d21f6936f0
tree4fbe64a920767f04c02c4d6081676fa62c150ca2
parentc29a7656f8a2a2386ce495892aff3d4b26304667
netfilter: flowtable: cache info of last offload

[ Upstream commit 1a441a9b8be8849957a01413a144f84932c324cb ]

Modify flow table offload to cache the last ct info status that was passed
to the driver offload callbacks by extending enum nf_flow_flags with new
"NF_FLOW_HW_ESTABLISHED" flag. Set the flag if ctinfo was 'established'
during last act_ct meta actions fill call. This infrastructure change is
necessary to optimize promoting of UDP connections from 'new' to
'established' in following patches in this series.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 125f1c7f26ff ("net/sched: act_ct: Take per-cb reference to tcf_ct_flow_table")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_inet.c
net/netfilter/nf_flow_table_offload.c
net/sched/act_ct.c