diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c index 0ab99e62cc5ce060103d202eac56add19964a190..ba0e34b096483c4529b97ba4a73bccdd0e8735bc 100644 --- a/drivers/infiniband/core/device.c +++ b/drivers/infiniband/core/device.c @@ -878,7 +878,7 @@ int ib_query_gid(struct ib_device *device, u8 port_num, int index, union ib_gid *gid, struct ib_gid_attr *attr) { - if (rdma_cap_roce_gid_table(device, port_num)) + if (rdma_protocol_roce(device, port_num)) return ib_get_cached_gid(device, port_num, index, gid, attr); if (attr)