Subject: [net-next v8 0/3] add broadcast_neighbor for no-stacking networking arch

From: Tonghao Zhang <[email-masked]>
Date: Fri, 27 Jun 2025 21:49:27 +0800

For no-stacking networking arch, and enable the bond mode 4(lacp) in
datacenter, the switch require arp/nd packets as session synchronization.
More details please see patch.

v8 change log:
- please see change log in every patch

v7 change log:
- cleanup broadcast_neighbor when changing mode
- drop 4/4 patch, post separately
- add more commit info in 3/3 patch

v6 change log:
- del unnecessary rcu_read_lock in bond_xmit_broadcast

v5 change log:
- format commit message of all patches
- use skb_header_pointer instead of pskb_may_pull
- send only packets to active slaves instead of all ports, and add more commit log

v4 change log:
- fix dec option in bond_close

v3 change log:
- inc/dec broadcast_neighbor option in bond_open/close and UP state.
- remove explicit inline of bond_should_broadcast_neighbor
- remove sysfs option
- remove EXPORT_SYMBOL_GPL
- reorder option bond_opt_value
- use rcu_xxx in bond_should_notify_peers.

v2 change log:
- add static branch for performance
- add more info about no-stacking arch in commit message
- add broadcast_neighbor info and format doc
- invoke bond_should_broadcast_neighbor only in BOND_MODE_8023AD mode for performance
- explain why we need sending peer notify when failure recovery
- change the doc about num_unsol_na
- refine function name to ad_cond_set_peer_notif
- ad_cond_set_peer_notif invoked in ad_enable_collecting_distributing
- refine bond_should_notify_peers for lacp mode.

Cc: Jay Vosburgh <[email-masked]>
Cc: "David S. Miller" <[email-masked]>
Cc: Eric Dumazet <[email-masked]>
Cc: Jakub Kicinski <[email-masked]>
Cc: Paolo Abeni <[email-masked]>
Cc: Simon Horman <[email-masked]>
Cc: Jonathan Corbet <[email-masked]>
Cc: Andrew Lunn <[email-masked]>
Cc: Steven Rostedt <[email-masked]>
Cc: Masami Hiramatsu <[email-masked]>
Cc: Mathieu Desnoyers <[email-masked]>
Cc: Nikolay Aleksandrov <[email-masked]>
Cc: Zengbing Tu <[email-masked]>

Tonghao Zhang (3):
  net: bonding: add broadcast_neighbor option for 802.3ad
  net: bonding: add broadcast_neighbor netlink option
  net: bonding: send peer notify when failure recovery

 Documentation/networking/bonding.rst | 11 +++-
 drivers/net/bonding/bond_3ad.c       | 13 ++++
 drivers/net/bonding/bond_main.c      | 91 ++++++++++++++++++++++++----
 drivers/net/bonding/bond_netlink.c   | 16 +++++
 drivers/net/bonding/bond_options.c   | 42 +++++++++++++
 include/net/bond_options.h           |  1 +
 include/net/bonding.h                |  3 +
 include/uapi/linux/if_link.h         |  1 +
 8 files changed, 165 insertions(+), 13 deletions(-)

-- 
2.34.1