|
@@ -1061,7 +1061,7 @@ int ib_find_gid(struct ib_device *device, union ib_gid *gid,
|
|
int ret, port, i;
|
|
int ret, port, i;
|
|
|
|
|
|
for (port = rdma_start_port(device); port <= rdma_end_port(device); ++port) {
|
|
for (port = rdma_start_port(device); port <= rdma_end_port(device); ++port) {
|
|
- if (rdma_cap_roce_gid_table(device, port))
|
|
|
|
|
|
+ if (!rdma_protocol_ib(device, port))
|
|
continue;
|
|
continue;
|
|
|
|
|
|
for (i = 0; i < device->port_immutable[port].gid_tbl_len; ++i) {
|
|
for (i = 0; i < device->port_immutable[port].gid_tbl_len; ++i) {
|