netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch v2 0/3] IB/core: Fix GID cache for bonded net devices
@ 2025-02-07 21:36 longli
  2025-02-07 21:36 ` [Patch v2 1/3] IB/core: Do not use netdev IP if it is a bonded slave longli
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: longli @ 2025-02-07 21:36 UTC (permalink / raw)
  To: Jason Gunthorpe, Leon Romanovsky, Ajay Sharma, Konstantin Taranov,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: linux-rdma, netdev, linux-kernel, linux-hyperv, Long Li

From: Long Li <longli@microsoft.com>

When populating GID cache for net devices in a bonded setup, it should use the master device's
address whenever applicable.

The current code has some incorrect behaviors when dealing with bonded devices:
1. It adds IP of bonded slave to the GID cache when the device is already bonded
2. It adds IP of bonded slave to the GID cache when the device becomes bonded (via NETDEV_CHANGEUPPER notifier)
3. When a bonded slave device is unbonded, it doesn't add its IP to the default table in GID cache.

The patchset fixes those issues.

Changes log:
v2: Added cover letter explaining the overall problem and current behaviors.

Long Li (3):
  IB/core: Do not use netdev IP if it is a bonded slave
  IB/core: Use upper_device_filter to add upper ips
  IB/core: Add default IP when a slave is unlinked

 drivers/infiniband/core/roce_gid_mgmt.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-02-13  2:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07 21:36 [Patch v2 0/3] IB/core: Fix GID cache for bonded net devices longli
2025-02-07 21:36 ` [Patch v2 1/3] IB/core: Do not use netdev IP if it is a bonded slave longli
2025-02-07 21:36 ` [Patch v2 2/3] IB/core: Use upper_device_filter to add upper ips longli
2025-02-07 21:36 ` [Patch v2 3/3] IB/core: Add default IP when a slave is unlinked longli
2025-02-09  9:45 ` [Patch v2 0/3] IB/core: Fix GID cache for bonded net devices Leon Romanovsky
2025-02-13  2:20   ` [EXTERNAL] " Long Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).