Skip to content

A series of minor optimizations of the bonding module

Tonghao Zhang netdev 6 versions – 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 · linked by author and title

  1. v5 Latest4 patches 1 replyApplied 4/4
  2. v4 posting 2/24 patches 5 repliesSuperseded
  3. v4 posting 1/24 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches14 repliesSuperseded
v25 patches1 replySuperseded
v15 patches2 repliesSuperseded

Patches in v5 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: bonding: use workqueue to make sure peer notify updated in lacp modedrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_main.c include/net/bonding.h+56 -191 replyApplied
2/4net: bonding: move bond_should_notify_peers, e.g. into rtnl lock blockdrivers/net/bonding/bond_main.c+9 -210 repliesApplied
3/4net: bonding: skip the 2nd trylock when first one faildrivers/net/bonding/bond_main.c+9 -70 repliesApplied
4/4net: bonding: add the READ_ONCE/WRITE_ONCE for outside lock accessingdrivers/net/bonding/bond_main.c+5 -40 repliesApplied

Reviews trailers per patch

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

PatchHangbin Liu
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 v5 thread

Cover letter [PATCH net-next v5 0/4] A series of minor optimizations of the bonding module

These patches mainly target the peer notify mechanism of the bonding module. Including updates of peer notify, lock races, etc. For more information, please refer to the patch.

Cc Jay Vosburgh <[email protected]>
Cc "David S. Miller" <[email protected]>
Cc Eric Dumazet <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Paolo Abeni <[email protected]>
Cc Simon Horman <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Andrew Lunn <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
Cc Hangbin Liu <[email protected]>
Cc Jason Xing <[email protected]>

v5: introduce the bond_peer_notify_may_events used in patch 1 and 2.
v4: patch1 keeps the netdevice notifier order, and all patch rebase the codes.
v3: drop the 5/5 patch, net: bonding: combine rtnl lock block for arp monitor in activebackup mode

Tonghao Zhang (4):
net: bonding: use workqueue to make sure peer notify updated in lacp
mode
net: bonding: move bond_should_notify_peers, e.g. into rtnl lock block
net: bonding: skip the 2nd trylock when first one fail
net: bonding: add the READ_ONCE/WRITE_ONCE for outside lock accessing

 drivers/net/bonding/bond_3ad.c  |   7 +-
 drivers/net/bonding/bond_main.c | 113 ++++++++++++++++++++------------
 include/net/bonding.h           |   2 +
 3 files changed, 75 insertions(+), 47 deletions(-)
Signature · 1 line
2.34.1