From: Dotan Barak Date: Thu, 23 Aug 2012 14:09:03 +0000 (+0000) Subject: IB/mlx4: Fill in sq_sig_type in query QP X-Git-Tag: MMI-PSA29.97-13-9~15865^2^4~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=46db567debb2abe7c0c03a1bd97891cbc1a2470b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IB/mlx4: Fill in sq_sig_type in query QP Signed-off-by: Dotan Barak Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index f585eddef4b7..56e66a4c335c 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c @@ -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;