Skip to content

bridge: vlan: cleanups & fixes (part 3)

Nikolay Aleksandrov bridge netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesIn review
  2. v14 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bridge: vlan: use proper rcu for the vlgrp membernet/bridge/br_device.c net/bridge/br_forward.c net/bridge/br_input.c +3 more+104 -531 reply
2/4bridge: vlan: use rcu for vlan_list traversal in br_fill_ifinfonet/bridge/br_netlink.c+13 -81 reply
3/4bridge: vlan: drop unnecessary flush codenet/bridge/br_vlan.c+1 -81 reply
4/4bridge: vlan: move back vlan_flushnet/bridge/br_if.c net/bridge/br_private.h net/bridge/br_vlan.c+25 -101 reply

Reviews trailers per patch

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

PatchIdo Schimmel
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/4] bridge: vlan: cleanups & fixes (part 3)

From: Nikolay Aleksandrov <[email protected]>

Hi,
Patch 01 converts the vlgrp member to use rcu as it was already used in a similar way so better to make it official and use all the available RCU instrumentation. Patch 02 fixes a bug where the vlan_list can be traversed without rtnl or rcu held which could lead to using freed entries. Patch 03 removes some redundant code that isn't needed anymore. Patch 04 fixes a bug reported by Ido Schimmel about the vlan_flush order and switchdevs, it moves it back.

v2: patch 03 and 04 are new, couldn't escape the second synchronize_rcu() since the rhtable destruction can sleep

Thank you,
Nik

Nikolay Aleksandrov (4):
bridge: vlan: use proper rcu for the vlgrp member
bridge: vlan: use rcu for vlan_list traversal in br_fill_ifinfo
bridge: vlan: drop unnecessary flush code
bridge: vlan: move back vlan_flush

 net/bridge/br_device.c  |   2 +-
 net/bridge/br_forward.c |   6 +--
 net/bridge/br_if.c      |   3 +-
 net/bridge/br_input.c   |   4 +-
 net/bridge/br_netlink.c |  25 +++++----
 net/bridge/br_private.h |  33 ++++++++++--
 net/bridge/br_vlan.c    | 133 ++++++++++++++++++++++++++++++------------------
 7 files changed, 135 insertions(+), 71 deletions(-)
Signature · 1 line
2.4.3