summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMichael Brown2009-07-09 04:09:00 +0200
committerMichael Brown2009-07-18 00:06:34 +0200
commit80c41b90d226b8f6d80feb221a4920a0e0a88da2 (patch)
tree376989d4c3e3daf6d1a2e1595742136858750e4b /src/drivers
parent[infiniband] Allow completion queue operations to be optional (diff)
downloadipxe-80c41b90d226b8f6d80feb221a4920a0e0a88da2.tar.gz
ipxe-80c41b90d226b8f6d80feb221a4920a0e0a88da2.tar.xz
ipxe-80c41b90d226b8f6d80feb221a4920a0e0a88da2.zip
[infiniband] Add notion of a queue pair type
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/ipoib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/net/ipoib.c b/src/drivers/net/ipoib.c
index c5b2b432f..4d9f21d7a 100644
--- a/src/drivers/net/ipoib.c
+++ b/src/drivers/net/ipoib.c
@@ -519,7 +519,8 @@ static int ipoib_open ( struct net_device *netdev ) {
}
/* Allocate queue pair */
- ipoib->qp = ib_create_qp ( ibdev, IPOIB_NUM_SEND_WQES, ipoib->cq,
+ ipoib->qp = ib_create_qp ( ibdev, IB_QPT_UD,
+ IPOIB_NUM_SEND_WQES, ipoib->cq,
IPOIB_NUM_RECV_WQES, ipoib->cq, 0 );
if ( ! ipoib->qp ) {
DBGC ( ipoib, "IPoIB %p could not allocate queue pair\n",