Thread (26 messages) 26 messages, 3 authors, 16d ago

Re: [PATCH v2 net-next 07/11] bridge: provide lockless access to p->designated_port

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2026-06-03 07:47:10

On 03/06/2026 09:20, Eric Dumazet wrote:
Add READ_ONCE()/WRITE_ONCE() annotations around p->designated_port

This is needed at least for sysfs show_designated_port(), BRCTL_GET_PORT_INFO
and upcoming RTNL avoidance in "ip link" dumps (cf br_port_fill_attrs()).

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
---
  net/bridge/br_ioctl.c    | 2 +-
  net/bridge/br_netlink.c  | 3 ++-
  net/bridge/br_stp.c      | 4 ++--
  net/bridge/br_stp_if.c   | 2 +-
  net/bridge/br_sysfs_if.c | 2 +-
  5 files changed, 7 insertions(+), 6 deletions(-)
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help