aboutsummaryrefslogtreecommitdiff
path: root/hw/rdma/rdma_rm.h
diff options
context:
space:
mode:
Diffstat (limited to 'hw/rdma/rdma_rm.h')
-rw-r--r--hw/rdma/rdma_rm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rdma/rdma_rm.h b/hw/rdma/rdma_rm.h
index a7169b4e89..3c602c04c0 100644
--- a/hw/rdma/rdma_rm.h
+++ b/hw/rdma/rdma_rm.h
@@ -79,7 +79,7 @@ int rdma_rm_get_backend_gid_index(RdmaDeviceResources *dev_res,
static inline union ibv_gid *rdma_rm_get_gid(RdmaDeviceResources *dev_res,
int sgid_idx)
{
- return &dev_res->ports[0].gid_tbl[sgid_idx].gid;
+ return &dev_res->port.gid_tbl[sgid_idx].gid;
}
#endif