netfilter: flowtable: Use rw sem as flow block lock
authorPaul Blakey <paulb@mellanox.com>
Fri, 27 Mar 2020 09:12:29 +0000 (12:12 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Mar 2020 17:42:20 +0000 (18:42 +0100)
commit422c032afcf57d5e8109a54912e22ffc53d99068
treebd4d2a07642a24d79e512e6226467c765aca79a7
parent0a6a9515fe390976cd762c52d8d4f446d7a14285
netfilter: flowtable: Use rw sem as flow block lock

Currently flow offload threads are synchronized by the flow block mutex.
Use rw lock instead to increase flow insertion (read) concurrency.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
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_offload.c