From: Eric Dumazet <edumazet@google.com>
To: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>,
Nikolay Aleksandrov <razor@blackwall.org>,
Ido Schimmel <idosch@nvidia.com>,
netdev@vger.kernel.org, eric.dumazet@gmail.com,
Eric Dumazet <edumazet@google.com>
Subject: [PATCH v3 net-next 00/11] bridge: prepare lockless br_port_fill_attrs() (I)
Date: Thu, 4 Jun 2026 14:13:32 +0000 [thread overview]
Message-ID: <20260604141343.2124500-1-edumazet@google.com> (raw)
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().
I repeat (AI agents might read this cover ?):
Many p->flags accesses are racy, and will hopefully be fixed in a
future series.
v3: addressed Ido's feedback again (patch 6), silly me.
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 | 47 ++++++++++++++---------
net/bridge/br_stp_if.c | 16 ++++----
net/bridge/br_stp_timer.c | 2 +-
net/bridge/br_sysfs_if.c | 12 +++---
9 files changed, 136 insertions(+), 94 deletions(-)
--
2.54.0.1032.g2f8565e1d1-goog
next reply other threads:[~2026-06-04 14:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 14:13 Eric Dumazet [this message]
2026-06-04 14:13 ` [PATCH v3 net-next 01/11] bridge: add a READ_ONCE() in br_timer_value() Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 02/11] bridge: add bridge_flags_bit enum Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 03/11] bridge: use BR_PROMISC_BIT Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 04/11] bridge: use BR_ADMIN_COST_BIT Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 05/11] bridge: provide lockless access to p->path_cost Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 06/11] bridge: provide lockless access to p->designated_cost Eric Dumazet
2026-06-04 18:43 ` Ido Schimmel
2026-06-04 14:13 ` [PATCH v3 net-next 07/11] bridge: provide lockless access to p->designated_port Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 08/11] bridge: provide lockless access to p->priority Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 09/11] bridge: provide lockless access to p->port_id Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 10/11] bridge: provide lockless access to p->config_pending Eric Dumazet
2026-06-04 14:13 ` [PATCH v3 net-next 11/11] bridge: read p->flags once in br_port_fill_attrs() Eric Dumazet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260604141343.2124500-1-edumazet@google.com \
--to=edumazet@google.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox