netfilter: conntrack: Introduce tcp offload timeout configuration
authorOz Shlomo <ozsh@nvidia.com>
Thu, 3 Jun 2021 12:12:33 +0000 (15:12 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Jun 2021 10:23:37 +0000 (12:23 +0200)
commitef8ed5ea091bf21648d0c4c1fa4a962d079eab2b
treecff50e61f8120a639af05d53c229160f884bea00
parent0418b989a467885292c294923dec66951c1c1398
netfilter: conntrack: Introduce tcp offload timeout configuration

TCP connections may be offloaded from nf conntrack to nf flow table.
Offloaded connections are aged after 30 seconds of inactivity.
Once aged, ownership is returned to conntrack with a hard coded pickup
time of 120 seconds, after which the connection may be deleted.
eted. The current aging intervals may be too aggressive for some users.

Provide users with the ability to control the nf flow table offload
aging and pickup time intervals via sysctl parameter as a pre-step for
configuring the nf flow table GC timeout intervals.

Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netns/conntrack.h
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_standalone.c