Skip to content

IB/core: Fix GID cache for bonded net devices

[email protected] linux-hyperv linux-rdma lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v13 patches 0 repliesSuperseded

Changes log from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3IB/core: Do not use netdev IP if it is a bonded slavedrivers/infiniband/core/roce_gid_mgmt.c+1 -10 replies
2/3IB/core: Use upper_device_filter to add upper ipsdrivers/infiniband/core/roce_gid_mgmt.c+1 -10 replies
3/3IB/core: Add default IP when a slave is unlinkeddrivers/infiniband/core/roce_gid_mgmt.c+7 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Patch v2 0/3] IB/core: Fix GID cache for bonded net devices

From: Long Li <[email protected]>

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(-)
Signature · 1 line
2.34.1