]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_flow_table: add support for sending flows back to the slow path
authorFelix Fietkau <nbd@nbd.name>
Mon, 26 Feb 2018 09:15:23 +0000 (10:15 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Apr 2018 08:28:59 +0000 (10:28 +0200)
commite9901a8387735a47795e2bf740e10c87ba4a1b49
tree3b072913f65ae7043a8f349306b469a9b32fcd44
parentce7419fb15d782b74d5912d342d8814f46910d1c
netfilter: nf_flow_table: add support for sending flows back to the slow path

Since conntrack hasn't seen any packets from the offloaded flow in a
while, and the timeout for offloaded flows is set to an extremely long
value, we need to fix up the state before we can send a flow back to the
slow path.

For TCP, reset td_maxwin in both directions, which makes it resync its
state on the next packets.

Use the regular timeout for TCP and UDP established connections.

This allows the slow path to take over again once the offload state has
been torn down

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c