netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Don't use RCU for x_tables synchronization
@ 2021-03-08  1:24 Mark Tomlinson
  2021-03-08  1:24 ` [PATCH v2 1/3] Revert "netfilter: x_tables: Update remaining dereference to RCU" Mark Tomlinson
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Mark Tomlinson @ 2021-03-08  1:24 UTC (permalink / raw)
  To: pablo, kadlec, fw; +Cc: subashab, netfilter-devel, linux-kernel, Mark Tomlinson

The patches to change to using RCU synchronization in x_tables cause
updating tables to be slowed down by an order of magnitude. This has
been tried before, see https://lore.kernel.org/patchwork/patch/151796/
and ultimately was rejected. As mentioned in the patch description, a
different method can be used to ensure ordering of reads/writes. This
can simply be done by changing from smp_wmb() to smp_mb().

changes in v2:
- Update commit messages only

Mark Tomlinson (3):
  Revert "netfilter: x_tables: Update remaining dereference to RCU"
  Revert "netfilter: x_tables: Switch synchronization to RCU"
  netfilter: x_tables: Use correct memory barriers.

 include/linux/netfilter/x_tables.h |  7 ++---
 net/ipv4/netfilter/arp_tables.c    | 16 +++++-----
 net/ipv4/netfilter/ip_tables.c     | 16 +++++-----
 net/ipv6/netfilter/ip6_tables.c    | 16 +++++-----
 net/netfilter/x_tables.c           | 49 +++++++++++++++++++++---------
 5 files changed, 60 insertions(+), 44 deletions(-)

-- 
2.30.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-15 17:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-08  1:24 [PATCH v2 0/3] Don't use RCU for x_tables synchronization Mark Tomlinson
2021-03-08  1:24 ` [PATCH v2 1/3] Revert "netfilter: x_tables: Update remaining dereference to RCU" Mark Tomlinson
2021-03-08  1:24 ` [PATCH v2 2/3] Revert "netfilter: x_tables: Switch synchronization " Mark Tomlinson
2021-03-08  1:24 ` [PATCH v2 3/3] netfilter: x_tables: Use correct memory barriers Mark Tomlinson
2021-03-09 11:33   ` Florian Westphal
2021-03-11 15:51 ` [PATCH v2 0/3] Don't use RCU for x_tables synchronization Tyler Hicks
2021-03-15 17:42 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).