]> git.openfabrics.org - ~shefty/libmlx4.git/commitdiff
Reset RQ doorbell counter to 0 when QP is reset
authorMichael S. Tsirkin <mst@mellanox.co.il>
Sun, 9 Sep 2007 09:01:21 +0000 (12:01 +0300)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Sep 2007 04:57:58 +0000 (21:57 -0700)
Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/verbs.c

index 78dfabf3d998eaf0f994e1b3c62ce466e154d225..4e7beffc8e250baf3deea62dc8aeebf2afd14fbd 100644 (file)
@@ -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;