OSDN Git Service

netfilter: conntrack: Introduce udp offload timeout configuration
authorOz Shlomo <ozsh@nvidia.com>
Thu, 3 Jun 2021 12:12:34 +0000 (15:12 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Jun 2021 10:23:37 +0000 (12:23 +0200)
commit975c57504da1114551fdb3a91ed61dda7739613e
treeb0847114ca10b421e2efe116aa9fff49d3723a3b
parentef8ed5ea091bf21648d0c4c1fa4a962d079eab2b
netfilter: conntrack: Introduce udp offload timeout configuration

UDP 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 30 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_udp.c
net/netfilter/nf_conntrack_standalone.c