Netdev List
 help / color / mirror / Atom feed
* [PATCH v2 net-next 00/11] bridge: prepare lockless br_port_fill_attrs() (I)
@ 2026-06-03  6:20 Eric Dumazet
  2026-06-03  6:20 ` [PATCH v2 net-next 01/11] bridge: add a READ_ONCE() in br_timer_value() Eric Dumazet
                   ` (10 more replies)
  0 siblings, 11 replies; 26+ messages in thread
From: Eric Dumazet @ 2026-06-03  6:20 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Ido Schimmel, Nikolay Aleksandrov, netdev,
	eric.dumazet, Eric Dumazet

medium-term goal is to allow "ip link show" dump commands to run without RTNL.

This round of patches adds/fixes some lockess accesses in bridge.

This is not complete, more patches will come later.

Ultimately all changes to p->flags should use set_bit()/clear_bit().

v2: addressed Ido's feedback (patches 5 & 6).

Eric Dumazet (11):
  bridge: add a READ_ONCE() in br_timer_value()
  bridge: add bridge_flags_bit enum
  bridge: use BR_PROMISC_BIT
  bridge: use BR_ADMIN_COST_BIT
  bridge: provide lockless access to p->path_cost
  bridge: provide lockless access to p->designated_cost
  bridge: provide lockless access to p->designated_port
  bridge: provide lockless access to p->priority
  bridge: provide lockless access to p->port_id
  bridge: provide lockless access to p->config_pending
  bridge: read p->flags once in br_port_fill_attrs()

 include/linux/if_bridge.h | 78 ++++++++++++++++++++++++++-------------
 net/bridge/br_if.c        |  8 ++--
 net/bridge/br_ioctl.c     | 10 ++---
 net/bridge/br_netlink.c   | 55 ++++++++++++++-------------
 net/bridge/br_private.h   |  2 +-
 net/bridge/br_stp.c       | 45 +++++++++++++---------
 net/bridge/br_stp_if.c    | 16 ++++----
 net/bridge/br_stp_timer.c |  2 +-
 net/bridge/br_sysfs_if.c  | 12 +++---
 9 files changed, 134 insertions(+), 94 deletions(-)

-- 
2.54.0.1013.g208068f2d8-goog


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

end of thread, other threads:[~2026-06-04 13:26 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03  6:20 [PATCH v2 net-next 00/11] bridge: prepare lockless br_port_fill_attrs() (I) Eric Dumazet
2026-06-03  6:20 ` [PATCH v2 net-next 01/11] bridge: add a READ_ONCE() in br_timer_value() Eric Dumazet
2026-06-03  7:42   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 02/11] bridge: add bridge_flags_bit enum Eric Dumazet
2026-06-03  7:42   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 03/11] bridge: use BR_PROMISC_BIT Eric Dumazet
2026-06-03  7:42   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 04/11] bridge: use BR_ADMIN_COST_BIT Eric Dumazet
2026-06-03  7:43   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 05/11] bridge: provide lockless access to p->path_cost Eric Dumazet
2026-06-03  7:44   ` Nikolay Aleksandrov
2026-06-04 10:50   ` Ido Schimmel
2026-06-03  6:20 ` [PATCH v2 net-next 06/11] bridge: provide lockless access to p->designated_cost Eric Dumazet
2026-06-03  7:46   ` Nikolay Aleksandrov
2026-06-04 10:50   ` Ido Schimmel
2026-06-04 13:26     ` Eric Dumazet
2026-06-03  6:20 ` [PATCH v2 net-next 07/11] bridge: provide lockless access to p->designated_port Eric Dumazet
2026-06-03  7:47   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 08/11] bridge: provide lockless access to p->priority Eric Dumazet
2026-06-03  7:49   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 09/11] bridge: provide lockless access to p->port_id Eric Dumazet
2026-06-03  7:50   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 10/11] bridge: provide lockless access to p->config_pending Eric Dumazet
2026-06-03  7:51   ` Nikolay Aleksandrov
2026-06-03  6:20 ` [PATCH v2 net-next 11/11] bridge: read p->flags once in br_port_fill_attrs() Eric Dumazet
2026-06-03  7:52   ` Nikolay Aleksandrov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox