]> git.ipfire.org Git - thirdparty/linux.git/commit
netfilter: flowtable: fixup UDP timeout depending on ct state
authorVlad Buslov <vladbu@nvidia.com>
Wed, 1 Feb 2023 16:30:55 +0000 (17:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2023 09:31:24 +0000 (09:31 +0000)
commit0eb5acb16418898c3d813e2c2d59a7ea7763a824
tree11b08fe17c967e94342fc718d5e60a30bf3bd202
parent29744a10c59ede4f996c0c893127ac11bcc85c0c
netfilter: flowtable: fixup UDP timeout depending on ct state

Currently flow_offload_fixup_ct() function assumes that only replied UDP
connections can be offloaded and hardcodes UDP_CT_REPLIED timeout value. To
enable UDP NEW connection offload in following patches extract the actual
connections state from ct->status and set the timeout according to it.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_flow_table_core.c