public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Tonghao Zhang <tonghao@bamaicloud•com>
To: netdev@vger•kernel.org
Cc: Tonghao Zhang <tonghao@bamaicloud•com>,
	Jay Vosburgh <jv@jvosburgh•net>,
	"David S. Miller" <davem@davemloft•net>,
	Eric Dumazet <edumazet@google•com>,
	Jakub Kicinski <kuba@kernel•org>, Paolo Abeni <pabeni@redhat•com>,
	Simon Horman <horms@kernel•org>, Jonathan Corbet <corbet@lwn•net>,
	Andrew Lunn <andrew+netdev@lunn•ch>,
	Nikolay Aleksandrov <razor@blackwall•org>,
	Hangbin Liu <liuhangbin@gmail•com>,
	Jason Xing <kerneljasonxing@gmail•com>
Subject: [PATCH net-next v4 0/4] A series of minor optimizations of the bonding module
Date: Mon, 29 Dec 2025 17:50:14 +0800	[thread overview]
Message-ID: <cover.1767000122.git.tonghao@bamaicloud.com> (raw)

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 <jv@jvosburgh•net>
Cc: "David S. Miller" <davem@davemloft•net>
Cc: Eric Dumazet <edumazet@google•com>
Cc: Jakub Kicinski <kuba@kernel•org>
Cc: Paolo Abeni <pabeni@redhat•com>
Cc: Simon Horman <horms@kernel•org>
Cc: Jonathan Corbet <corbet@lwn•net>
Cc: Andrew Lunn <andrew+netdev@lunn•ch>
Cc: Nikolay Aleksandrov <razor@blackwall•org>
Cc: Hangbin Liu <liuhangbin@gmail•com>
Cc: Jason Xing <kerneljasonxing@gmail•com>

v4: patch1 keeps the netdevice notifier order
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 | 101 ++++++++++++++++++++------------
 include/net/bonding.h           |   2 +
 3 files changed, 69 insertions(+), 41 deletions(-)

-- 
2.34.1


WARNING: multiple messages have this Message-ID (diff)
From: Tonghao Zhang <tonghao@bamaicloud•com>
To: netdev@vger•kernel.org
Cc: Tonghao Zhang <tonghao@bamaicloud•com>,
	Jay Vosburgh <jv@jvosburgh•net>,
	"David S. Miller" <davem@davemloft•net>,
	Eric Dumazet <edumazet@google•com>,
	Jakub Kicinski <kuba@kernel•org>, Paolo Abeni <pabeni@redhat•com>,
	Simon Horman <horms@kernel•org>, Jonathan Corbet <corbet@lwn•net>,
	Andrew Lunn <andrew+netdev@lunn•ch>,
	Nikolay Aleksandrov <razor@blackwall•org>,
	Hangbin Liu <liuhangbin@gmail•com>,
	Jason Xing <kerneljasonxing@gmail•com>
Subject: [PATCH RESEND net-next v4 0/4] A series of minor optimizations of the bonding module
Date: Sat,  3 Jan 2026 17:49:42 +0800	[thread overview]
Message-ID: <cover.1767000122.git.tonghao@bamaicloud.com> (raw)
Message-ID: <20260103094942.cUQ2gITE_C8UqX2eFcfNpH_hZvpFBVeWHrPulhVJgro@z> (raw)

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 <jv@jvosburgh•net>
Cc: "David S. Miller" <davem@davemloft•net>
Cc: Eric Dumazet <edumazet@google•com>
Cc: Jakub Kicinski <kuba@kernel•org>
Cc: Paolo Abeni <pabeni@redhat•com>
Cc: Simon Horman <horms@kernel•org>
Cc: Jonathan Corbet <corbet@lwn•net>
Cc: Andrew Lunn <andrew+netdev@lunn•ch>
Cc: Nikolay Aleksandrov <razor@blackwall•org>
Cc: Hangbin Liu <liuhangbin@gmail•com>
Cc: Jason Xing <kerneljasonxing@gmail•com>

v4: patch1 keeps the netdevice notifier order
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 | 101 ++++++++++++++++++++------------
 include/net/bonding.h           |   2 +
 3 files changed, 69 insertions(+), 41 deletions(-)

-- 
2.34.1


             reply	other threads:[~2025-12-29  9:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-29  9:50 Tonghao Zhang [this message]
2025-12-29  9:50 ` [PATCH net-next v4 1/4] net: bonding: use workqueue to make sure peer notify updated in lacp mode Tonghao Zhang
2026-01-03  9:49   ` [PATCH RESEND " Tonghao Zhang
2025-12-29  9:50 ` [PATCH net-next v4 2/4] net: bonding: move bond_should_notify_peers, e.g. into rtnl lock block Tonghao Zhang
2026-01-03  9:49   ` [PATCH RESEND " Tonghao Zhang
2025-12-29  9:50 ` [PATCH net-next v4 3/4] net: bonding: skip the 2nd trylock when first one fail Tonghao Zhang
2026-01-03  9:49   ` [PATCH RESEND " Tonghao Zhang
2025-12-29  9:50 ` [PATCH net-next v4 4/4] net: bonding: add the READ_ONCE/WRITE_ONCE for outside lock accessing Tonghao Zhang
2026-01-03  9:49   ` [PATCH RESEND " Tonghao Zhang
2025-12-29 16:49 ` [PATCH net-next v4 0/4] A series of minor optimizations of the bonding module Paolo Abeni
2026-01-03  9:49 ` [PATCH RESEND " Tonghao Zhang
2026-01-07  0:24 ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1767000122.git.tonghao@bamaicloud.com \
    --to=tonghao@bamaicloud$(echo .)com \
    --cc=andrew+netdev@lunn$(echo .)ch \
    --cc=corbet@lwn$(echo .)net \
    --cc=davem@davemloft$(echo .)net \
    --cc=edumazet@google$(echo .)com \
    --cc=horms@kernel$(echo .)org \
    --cc=jv@jvosburgh$(echo .)net \
    --cc=kerneljasonxing@gmail$(echo .)com \
    --cc=kuba@kernel$(echo .)org \
    --cc=liuhangbin@gmail$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pabeni@redhat$(echo .)com \
    --cc=razor@blackwall$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox