aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@mellanox.co.il>2007-09-09 12:01:21 +0300
committerRoland Dreier <rolandd@cisco.com>2007-09-10 21:57:58 -0700
commite244b919e350ef27e004173bb123dad64bf2f502 (patch)
treea7035c5976b38c640bc1ebd61f8fe29c605be92e
parentfac700ddac424a8fdd815f979eb941af4bb542fc (diff)
downloadlibmlx4-e244b919e350ef27e004173bb123dad64bf2f502.tar.gz
Reset RQ doorbell counter to 0 when QP is reset
Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/verbs.c2
1 files changed, 2 insertions, 0 deletions
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;