OSDN Git Service

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)
commitf698fe40829b21088d323c8b0a7c626571528fc6
tree5fee556023e5b2b8855a1ab7ee57a12da7a10bb2
parenta5449cdcaac5c78d62b8bea8f79158071f23da01
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