Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173795642
D58510.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
809 B
Referenced Files
None
Subscribers
None
D58510.diff
View Options
diff --git a/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c b/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
--- a/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
+++ b/sys/ofed/drivers/infiniband/core/ib_roce_gid_mgmt.c
@@ -213,6 +213,7 @@
union ib_gid gid;
if_t ifp;
int default_gids;
+ int gid_tbl_len;
int i;
struct ipx_queue ipx_head;
@@ -271,13 +272,15 @@
update_gid(GID_ADD, device, port, &gid, entry->ndev);
}
+ gid_tbl_len = device->port_immutable[port].gid_tbl_len;
+
/* remove stale GIDs, if any */
- for (i = default_gids;; i++) {
+ for (i = default_gids; i < gid_tbl_len; i++) {
union ipx_addr ipx;
sgid_attr = rdma_get_gid_attr(device, port, i);
if (IS_ERR(sgid_attr))
- break;
+ continue;
ndev = sgid_attr->ndev;
gid = sgid_attr->gid;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 29, 12:03 PM (17 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35971986
Default Alt Text
D58510.diff (809 B)
Attached To
Mode
D58510: ofed: don't stop removing stale RoCE GIDs at the first hole
Attached
Detach File
Event Timeline
Log In to Comment