RDMA/i40iw: Fix for a NOP WQE size
authorMohammad Khan <mohammad.a.khan@intel.com>
Fri, 22 Apr 2016 19:14:25 +0000 (14:14 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 20:32:55 +0000 (16:32 -0400)
Fix for filling in the WQE size for NOP

Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_uk.c

index 6e0e3272e57f501d6f2aab4675dd1563fec01942..2cd9091abd3ede01d818e53b79064fe18045c1cd 100644 (file)
@@ -56,6 +56,9 @@ static enum i40iw_status_code i40iw_nop_1(struct i40iw_qp_uk *qp)
 
        wqe_idx = I40IW_RING_GETCURRENT_HEAD(qp->sq_ring);
        wqe = qp->sq_base[wqe_idx].elem;
+
+       qp->sq_wrtrk_array[wqe_idx].wqe_size = I40IW_QP_WQE_MIN_SIZE;
+
        peek_head = (qp->sq_ring.head + 1) % qp->sq_ring.size;
        wqe_0 = qp->sq_base[peek_head].elem;
        if (peek_head)