Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] macvlan: RTNL-less macvlan_fill_info()
@ 2026-07-01  8:22 Eric Dumazet
  2026-07-01  8:22 ` [PATCH net-next 1/2] macvlan: annotate data-races around vlan->mode and vlan->flags Eric Dumazet
  2026-07-01  8:22 ` [PATCH net-next 2/2] macvlan: no longer rely on RTNL in macvlan_fill_info() Eric Dumazet
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Dumazet @ 2026-07-01  8:22 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Kuniyuki Iwashima, netdev, eric.dumazet,
	Eric Dumazet

This series removes the RTNL lock dependency from macvlan_fill_info(),
allowing it to run under RCU read lock.

The first patch annotates data races on 'mode' and 'flags' fields which
are accessed locklessly in the RX/TX paths.

The second patch transitions macvlan_fill_info() to RCU, adding necessary
annotations for other fields and handling concurrent updates to the MAC
address list by computing the count dynamically.

Eric Dumazet (2):
  macvlan: annotate data-races around vlan->mode and vlan->flags
  macvlan: no longer rely on RTNL in macvlan_fill_info()

 drivers/net/macvlan.c | 109 ++++++++++++++++++++++++++----------------
 1 file changed, 69 insertions(+), 40 deletions(-)

-- 
2.55.0.rc0.799.gd6f94ed593-goog


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

end of thread, other threads:[~2026-07-01 12:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01  8:22 [PATCH net-next 0/2] macvlan: RTNL-less macvlan_fill_info() Eric Dumazet
2026-07-01  8:22 ` [PATCH net-next 1/2] macvlan: annotate data-races around vlan->mode and vlan->flags Eric Dumazet
2026-07-01 12:09   ` Nikolay Aleksandrov
2026-07-01  8:22 ` [PATCH net-next 2/2] macvlan: no longer rely on RTNL in macvlan_fill_info() Eric Dumazet
2026-07-01 12:11   ` Nikolay Aleksandrov

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