]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf38c87c82a6ff91b802a2ac41ec95fd4724acbf
tree5abcf6fd08cf0496572cd7a255d855b16cedfedf
parent1b2dfb73ae7ad1a6edaba47b96f97a962139c43d
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: c6fcb692ca1a ("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