OSDN Git Service

netfilter: flowtable: use atomic bitwise operations for flow flags
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Jan 2020 19:41:15 +0000 (20:41 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 14:51:50 +0000 (15:51 +0100)
commit355a8b13f87a8964ebe785b065f1388a1bd00c7e
tree5abcf6fd08cf0496572cd7a255d855b16cedfedf
parent445db8d09659eb27bcd5920cb91d91686f0197d0
netfilter: flowtable: use atomic bitwise operations for flow flags

Originally, all flow flag bits were set on only from the workqueue. With
the introduction of the flow teardown state and hardware offload this is
no longer true. Let's be safe and use atomic bitwise operation to
operation with flow flags.

Fixes: 59c466dd68e7 ("netfilter: nf_flow_table: add a new flow state for tearing down offloading")
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