[infiniband] Add notion of a queue pair type
[people/lynusvaz/gpxe.git] / src / drivers / net / ipoib.c
index c5b2b43..4d9f21d 100644 (file)
@@ -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",