Skip to content

Commit e432c04

Browse files
gal-pressmanjgunthorpe
authored andcommitted
RDMA/core: Fix empty gid table for non IB/RoCE devices
The query_gid_table ioctl skips non IB/RoCE ports, which as a result returns an empty gid table for devices such as EFA which have a GID table, but are not IB/RoCE. Fixes: c4b4d54 ("RDMA/core: Introduce new GID table query API") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gal Pressman <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 93416ab commit e432c04

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/infiniband/core/cache.c

-3
Original file line numberDiff line numberDiff line change
@@ -1269,9 +1269,6 @@ ssize_t rdma_query_gid_table(struct ib_device *device,
12691269
unsigned long flags;
12701270

12711271
rdma_for_each_port(device, port_num) {
1272-
if (!rdma_ib_or_roce(device, port_num))
1273-
continue;
1274-
12751272
table = rdma_gid_table(device, port_num);
12761273
read_lock_irqsave(&table->rwlock, flags);
12771274
for (i = 0; i < table->sz; i++) {

0 commit comments

Comments
 (0)