Skip to contentSkip to conversation

IB/ehca: fix wrong number of send WRs returned

PATCH Applied Joachim Fenkes 2 participants 2 messages May 24, 2007 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/ehca: fix wrong number of send WRs returned

From: Stefan Roscher <[email protected]>

Due to a typo, the driver was reporting the wrong number of "actual send WRs" after ehca_create_qp(). Fixed.

---
 drivers/infiniband/hw/ehca/hcp_if.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/ehca/hcp_if.c +1 -1
index 7f0beec..5766ae3 100644
@@ -331,7 +331,7 @@ u64 hipz_h_alloc_resource_qp(const struct ipz_adapter_handle adapter_handle,
 				0);
 	qp->ipz_qp_handle.handle = outs[0];
 	qp->real_qp_num = (u32)outs[1];
-	parms->act_nr_send_sges =
+	parms->act_nr_send_wqes =
 		(u16)EHCA_BMASK_GET(H_ALL_RES_QP_ACT_OUTST_SEND_WR, outs[2]);
 	parms->act_nr_recv_wqes =
 		(u16)EHCA_BMASK_GET(H_ALL_RES_QP_ACT_OUTST_RECV_WR, outs[2]);
Signature · 1 line
1.5.2