[ofa-general] [PATCHv2] libmlx4: Reset RQ doorbell counter after QP reset

Michael S. Tsirkin mst at mellanox.co.il
Sun Sep 9 02:01:21 PDT 2007


Signed-off-by: Michael S. Tsirkin <mst at dev.mellanox.co.il>

---

diff --git a/src/verbs.c b/src/verbs.c
index 78dfabf..4e7beff 100644
--- a/src/verbs.c
+++ b/src/verbs.c
@@ -484,6 +484,8 @@ int mlx4_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
 			mlx4_cq_clean(to_mcq(qp->send_cq), qp->qp_num, NULL);
 
 		mlx4_init_qp_indices(to_mqp(qp));
+		if (!qp->srq)
+			*to_mqp(qp)->db = 0;
 	}
 
 	return ret;

-- 
Michael S. Tsirkin - Staff Engineer, Mellanox Technologies Ltd.
Of all the ways of starting a fire, the best is dry matches.



More information about the general mailing list