[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1732736619-19941-3-git-send-email-longli@linuxonhyperv.com>
Date: Wed, 27 Nov 2024 11:43:38 -0800
From: longli@...uxonhyperv.com
To: Jason Gunthorpe <jgg@...pe.ca>,
Leon Romanovsky <leon@...nel.org>,
Ajay Sharma <sharmaajay@...rosoft.com>,
Konstantin Taranov <kotaranov@...rosoft.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: linux-rdma@...r.kernel.org,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-hyperv@...r.kernel.org,
Long Li <longli@...rosoft.com>
Subject: [PATCH 2/3] RDMA/core: Use upper_device_filter() to add upper IPs
From: Long Li <longli@...rosoft.com>
add_cmd_upper_ips() 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 that
it looks for upper netdevs for GIDs.
Signed-off-by: Long Li <longli@...rosoft.com>
---
drivers/infiniband/core/roce_gid_mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
2.34.1
Powered by blists - more mailing lists