netfilter: flowtable: cache info of last offload
authorVlad Buslov <vladbu@nvidia.com>
Wed, 1 Feb 2023 16:30:57 +0000 (17:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2023 09:31:24 +0000 (09:31 +0000)
commit1a441a9b8be8849957a01413a144f84932c324cb
treee91669b147bb2211e6724d1ad04f7593d29ab9c4
parent8f84780b84d645d6e35467f4a6f3236b20d7f4b2
netfilter: flowtable: cache info of last offload

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>
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