summaryrefslogtreecommitdiffstats
path: root/src/net/infiniband/ib_gma.c
diff options
context:
space:
mode:
authorMichael Brown2009-08-02 23:57:01 +0200
committerMichael Brown2009-08-06 02:24:18 +0200
commitb0c563824b40240b223721ad0658e79946df27cc (patch)
treea375ff568ff3a6431ff1960faa9f67f7085440e2 /src/net/infiniband/ib_gma.c
parent[build] Mark __intel_new_proc_init with __libgcc rather than cdecl (diff)
downloadipxe-b0c563824b40240b223721ad0658e79946df27cc.tar.gz
ipxe-b0c563824b40240b223721ad0658e79946df27cc.tar.xz
ipxe-b0c563824b40240b223721ad0658e79946df27cc.zip
[infiniband] Change IB_{QPN,QKEY,QPT} names from {SMA,GMA} to {SMI,GSI}
The IBA specification refers to management "interfaces" and "agents". The interface is the component that connects to the queue pair and sends and receives MADs; the agent is the component that constructs the reply to the MAD. Rename the IB_{QPN,QKEY,QPT} constants as a first step towards making this separation in gPXE.
Diffstat (limited to 'src/net/infiniband/ib_gma.c')
-rw-r--r--src/net/infiniband/ib_gma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/infiniband/ib_gma.c b/src/net/infiniband/ib_gma.c
index 174b8845..1a87b26a 100644
--- a/src/net/infiniband/ib_gma.c
+++ b/src/net/infiniband/ib_gma.c
@@ -590,8 +590,8 @@ int ib_gma_request ( struct ib_gma *gma, union ib_mad *mad,
} else {
request->av.lid = ibdev->sm_lid;
request->av.sl = ibdev->sm_sl;
- request->av.qpn = IB_QPN_GMA;
- request->av.qkey = IB_QKEY_GMA;
+ request->av.qpn = IB_QPN_GSI;
+ request->av.qkey = IB_QKEY_GSI;
}
/* Copy MAD body */
@@ -656,7 +656,7 @@ struct ib_gma * ib_create_gma ( struct ib_device *ibdev,
DBGC ( gma, "GMA %p running on QPN %#lx\n", gma, gma->qp->qpn );
/* Set queue key */
- gma->qp->qkey = ( ( type == IB_QPT_SMA ) ? IB_QKEY_SMA : IB_QKEY_GMA );
+ gma->qp->qkey = ( ( type == IB_QPT_SMI ) ? IB_QKEY_SMI : IB_QKEY_GSI );
if ( ( rc = ib_modify_qp ( ibdev, gma->qp ) ) != 0 ) {
DBGC ( gma, "GMA %p could not set queue key: %s\n",
gma, strerror ( rc ) );