aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/infiniband
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-07-07 14:03:11 +0100
committerMichael Brown <mcb30@etherboot.org>2009-07-17 23:06:33 +0100
commitb4155c4ab541693f35f2efe76d6dc75dd4cb7825 (patch)
treee90bc2a5f9b2213cb4bbdd837e161dd796b7f8d5 /src/net/infiniband
parent8aa2591c06116de3e917c2b94d74a19770edf677 (diff)
downloadipxe-b4155c4ab541693f35f2efe76d6dc75dd4cb7825.tar.gz
[infiniband] Make qkey and rate optional parameters to ib_post_send()
The queue key is stored as a property of the queue pair, and so can optionally be added by the Infiniband core at the time of calling ib_post_send(), rather than always having to be specified by the caller. This allows IPoIB to avoid explicitly keeping track of the data queue key.
Diffstat (limited to 'src/net/infiniband')
-rw-r--r--src/net/infiniband/ib_gma.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/net/infiniband/ib_gma.c b/src/net/infiniband/ib_gma.c
index 2baae25c6..d599ea32b 100644
--- a/src/net/infiniband/ib_gma.c
+++ b/src/net/infiniband/ib_gma.c
@@ -197,10 +197,6 @@ static void ib_gma_complete_recv ( struct ib_device *ibdev,
}
}
- /* Construct return address */
- av->qkey = ( ( av->qpn == IB_QPN_SMA ) ? IB_QKEY_SMA : IB_QKEY_GMA );
- av->rate = IB_RATE_2_5;
-
/* Send MAD response, if applicable */
if ( ( rc = ib_post_send ( ibdev, qp, av,
iob_disown ( iobuf ) ) ) != 0 ) {