summaryrefslogtreecommitdiffstats
path: root/src/net/infiniband.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.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.c')
-rw-r--r--src/net/infiniband.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/infiniband.c b/src/net/infiniband.c
index 96a663c8..16770816 100644
--- a/src/net/infiniband.c
+++ b/src/net/infiniband.c
@@ -209,11 +209,11 @@ struct ib_queue_pair * ib_create_qp ( struct ib_device *ibdev,
/* Calculate externally-visible QPN */
switch ( type ) {
- case IB_QPT_SMA:
- qp->ext_qpn = IB_QPN_SMA;
+ case IB_QPT_SMI:
+ qp->ext_qpn = IB_QPN_SMI;
break;
- case IB_QPT_GMA:
- qp->ext_qpn = IB_QPN_GMA;
+ case IB_QPT_GSI:
+ qp->ext_qpn = IB_QPN_GSI;
break;
default:
qp->ext_qpn = qp->qpn;
@@ -535,7 +535,7 @@ int ib_open ( struct ib_device *ibdev ) {
}
/* Create subnet management agent */
- ibdev->sma = ib_create_gma ( ibdev, IB_QPT_SMA );
+ ibdev->sma = ib_create_gma ( ibdev, IB_QPT_SMI );
if ( ! ibdev->sma ) {
DBGC ( ibdev, "IBDEV %p could not create SMA\n", ibdev );
rc = -ENOMEM;
@@ -543,7 +543,7 @@ int ib_open ( struct ib_device *ibdev ) {
}
/* Create general management agent */
- ibdev->gma = ib_create_gma ( ibdev, IB_QPT_GMA );
+ ibdev->gma = ib_create_gma ( ibdev, IB_QPT_GSI );
if ( ! ibdev->gma ) {
DBGC ( ibdev, "IBDEV %p could not create GMA\n", ibdev );
rc = -ENOMEM;