Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46db567d authored by Dotan Barak's avatar Dotan Barak Committed by Roland Dreier
Browse files

IB/mlx4: Fill in sq_sig_type in query QP

parent 979570e0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2225,6 +2225,10 @@ int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr
	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;