]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
netfilter: conntrack: fix udp offload timeout sysctl
authorVolodymyr Mytnyk <volodymyr.mytnyk@plvision.eu>
Wed, 27 Apr 2022 11:09:00 +0000 (14:09 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:53 +0000 (14:22 +0200)
commitb96195342935f389bb765f83e37b022ab0d6c88f
treebfaf71a0d251ef7b8b75bd12d02590ff22181670
parentaa9362ee3d59f6ac30058db7b1227670c671d5eb
netfilter: conntrack: fix udp offload timeout sysctl

BugLink: https://bugs.launchpad.net/bugs/1978234
[ Upstream commit 626873c446f7559d5af8b48cefad903ffd85cf4e ]

`nf_flowtable_udp_timeout` sysctl option is available only
if CONFIG_NFT_FLOW_OFFLOAD enabled. But infra for this flow
offload UDP timeout was added under CONFIG_NF_FLOW_TABLE
config option. So, if you have CONFIG_NFT_FLOW_OFFLOAD
disabled and CONFIG_NF_FLOW_TABLE enabled, the
`nf_flowtable_udp_timeout` is not present in sysfs.
Please note, that TCP flow offload timeout sysctl option
is present even CONFIG_NFT_FLOW_OFFLOAD is disabled.

I suppose it was a typo in commit that adds UDP flow offload
timeout and CONFIG_NF_FLOW_TABLE should be used instead.

Fixes: 975c57504da1 ("netfilter: conntrack: Introduce udp offload timeout configuration")
Signed-off-by: Volodymyr Mytnyk <volodymyr.mytnyk@plvision.eu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/netfilter/nf_conntrack_standalone.c