IB/mlx4: Fill in sq_sig_type in query QP
authorDotan Barak <dotanb@dev.mellanox.co.il>
Thu, 23 Aug 2012 14:09:03 +0000 (14:09 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 1 Oct 2012 03:33:08 +0000 (20:33 -0700)
Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/qp.c

index f585eddef4b7d5c7921575cebaa508eefde4f934..56e66a4c335c22488e31a580d020049b784ce4a3 100644 (file)
@@ -2225,6 +2225,10 @@ done:
        if (qp->flags & MLX4_IB_QP_LSO)
                qp_init_attr->create_flags |= IB_QP_CREATE_IPOIB_UD_LSO;
 
+       qp_init_attr->sq_sig_type =
+               qp->sq_signal_bits == cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE) ?
+               IB_SIGNAL_ALL_WR : IB_SIGNAL_REQ_WR;
+
 out:
        mutex_unlock(&qp->mutex);
        return err;