Skip to content

macvlan: RTNL-less macvlan_fill_info()

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2macvlan: annotate data-races around vlan->mode and vlan->flagsdrivers/net/macvlan.c+21 -172 repliesApplied
2/2macvlan: no longer rely on RTNL in macvlan_fill_info()drivers/net/macvlan.c+48 -232 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNikolay AleksandrovKuniyuki Iwashima
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] macvlan: RTNL-less macvlan_fill_info()

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(-)
Signature · 1 line
2.55.0.rc0.799.gd6f94ed593-goog