summaryrefslogtreecommitdiff
path: root/net/netfilter/nf_flow_table_inet.c
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@nvidia.com>2023-02-01 19:30:57 +0300
committerDavid S. Miller <davem@davemloft.net>2023-02-03 12:31:24 +0300
commit1a441a9b8be8849957a01413a144f84932c324cb (patch)
treee91669b147bb2211e6724d1ad04f7593d29ab9c4 /net/netfilter/nf_flow_table_inet.c
parent8f84780b84d645d6e35467f4a6f3236b20d7f4b2 (diff)
downloadlinux-1a441a9b8be8849957a01413a144f84932c324cb.tar.xz
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>
Diffstat (limited to 'net/netfilter/nf_flow_table_inet.c')
-rw-r--r--net/netfilter/nf_flow_table_inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_flow_table_inet.c b/net/netfilter/nf_flow_table_inet.c
index 0ccabf3fa6aa..9505f9d188ff 100644
--- a/net/netfilter/nf_flow_table_inet.c
+++ b/net/netfilter/nf_flow_table_inet.c
@@ -39,7 +39,7 @@ nf_flow_offload_inet_hook(void *priv, struct sk_buff *skb,
}
static int nf_flow_rule_route_inet(struct net *net,
- const struct flow_offload *flow,
+ struct flow_offload *flow,
enum flow_offload_tuple_dir dir,
struct nf_flow_rule *flow_rule)
{