diff mbox series

[v2,2/3] IB/core: Use upper_device_filter to add upper ips

Message ID 1738964178-18836-3-git-send-email-longli@linuxonhyperv.com (mailing list archive)
State Not Applicable
Headers show
Series IB/core: Fix GID cache for bonded net devices | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Long Li Feb. 7, 2025, 9:36 p.m. UTC
From: Long Li <longli@microsoft.com>

add_cmd_upper_ips() in ndev_event_link() is used to add upper IPs on a
bonded slave. Its filter function should be set to the same as
upper_ips_del_cmd() in ndev_event_unlink, in that they both look for upper
netdevs for GIDs.

Signed-off-by: Long Li <longli@microsoft.com>
---
 drivers/infiniband/core/roce_gid_mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/infiniband/core/roce_gid_mgmt.c b/drivers/infiniband/core/roce_gid_mgmt.c
index 27a3ffed11b9..827a50dbd308 100644
--- a/drivers/infiniband/core/roce_gid_mgmt.c
+++ b/drivers/infiniband/core/roce_gid_mgmt.c
@@ -689,7 +689,7 @@  static const struct netdev_event_work_cmd add_cmd = {
 
 static const struct netdev_event_work_cmd add_cmd_upper_ips = {
 	.cb	= add_netdev_upper_ips,
-	.filter = is_eth_port_of_netdev_filter
+	.filter = upper_device_filter
 };
 
 static void