Skip to content

Commit 7d66a71

Browse files
gal-pressmanjgunthorpe
authored andcommitted
RDMA/uverbs: Fix false error in query gid IOCTL
Some drivers (such as EFA) have a GID table, but aren't IB/RoCE devices. Remove the unnecessary rdma_ib_or_roce() check. This fixes rdma-core failures for EFA when it uses the new ioctl interface for querying the GID table. Fixes: 9f85cbe ("RDMA/uverbs: Expose the new GID query API to user space") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gal Pressman <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent fbdd004 commit 7d66a71

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/infiniband/core/uverbs_std_types_device.c

-3
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,6 @@ static int UVERBS_HANDLER(UVERBS_METHOD_QUERY_GID_ENTRY)(
401401
if (!rdma_is_port_valid(ib_dev, port_num))
402402
return -EINVAL;
403403

404-
if (!rdma_ib_or_roce(ib_dev, port_num))
405-
return -EOPNOTSUPP;
406-
407404
gid_attr = rdma_get_gid_attr(ib_dev, port_num, gid_index);
408405
if (IS_ERR(gid_attr))
409406
return PTR_ERR(gid_attr);

0 commit comments

Comments
 (0)