]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: fix excessive hw offload attempts after failure
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 May 2022 12:26:13 +0000 (14:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 May 2022 10:58:55 +0000 (12:58 +0200)
commit396ef64113a8ba01c46315d67a99db8dde3eef51
tree787f0293245afcefe7ae2ec0dadb56499fd421c8
parentf3f19f939c11925dadd3f4776f99f8c278a7017b
netfilter: flowtable: fix excessive hw offload attempts after failure

If a flow cannot be offloaded, the code currently repeatedly tries again as
quickly as possible, which can significantly increase system load.
Fix this by limiting flow timeout update and hardware offload retry to once
per second.

Fixes: c07531c01d82 ("netfilter: flowtable: Remove redundant hw refresh bit")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c