]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: flowtable: refresh flow if hardware offload fails
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Jan 2020 11:56:47 +0000 (12:56 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 14:51:52 +0000 (15:51 +0100)
commit00f48f79b1897aa859eb9a2cb97c6d481dc489a3
tree5fee556023e5b2b8855a1ab7ee57a12da7a10bb2
parentdf677d17949c2ba9ad853819e1f9cf3e63437bd3
netfilter: flowtable: refresh flow if hardware offload fails

If nf_flow_offload_add() fails to add the flow to hardware, then the
NF_FLOW_HW_REFRESH flag bit is set and the flow remains in the flowtable
software path.

If flowtable hardware offload is enabled, this patch enqueues a new
request to offload this flow to hardware.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_flow_table.h
net/netfilter/nf_flow_table_core.c
net/netfilter/nf_flow_table_ip.c
net/netfilter/nf_flow_table_offload.c