diff mbox series

RDMA/cxgb4: Set sq_sig_type correctly

Message ID 20230731092106.10396-1-guoqing.jiang@linux.dev (mailing list archive)
State Accepted
Headers show
Series RDMA/cxgb4: Set sq_sig_type correctly | expand

Commit Message

Guoqing Jiang July 31, 2023, 9:21 a.m. UTC
Replace '0' with IB_SIGNAL_REQ_WR given the sq_sig_type is either
IB_SIGNAL_ALL_WR or IB_SIGNAL_REQ_WR per the below.

enum ib_sig_type {
	IB_SIGNAL_ALL_WR,
	IB_SIGNAL_REQ_WR
};

Signed-off-by: Guoqing Jiang <guoqing.jiang@linux.dev>
---
 drivers/infiniband/hw/cxgb4/qp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Leon Romanovsky Aug. 13, 2023, 7:28 a.m. UTC | #1
On Mon, 31 Jul 2023 17:21:06 +0800, Guoqing Jiang wrote:
> Replace '0' with IB_SIGNAL_REQ_WR given the sq_sig_type is either
> IB_SIGNAL_ALL_WR or IB_SIGNAL_REQ_WR per the below.
> 
> enum ib_sig_type {
> 	IB_SIGNAL_ALL_WR,
> 	IB_SIGNAL_REQ_WR
> };
> 
> [...]

Applied, thanks!

[1/1] RDMA/cxgb4: Set sq_sig_type correctly
      https://git.kernel.org/rdma/rdma/c/25944c068139f6

Best regards,
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index ffbd9a89981e..d16d8eaa1415 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -2466,7 +2466,7 @@  int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
 	init_attr->cap.max_send_sge = qhp->attr.sq_max_sges;
 	init_attr->cap.max_recv_sge = qhp->attr.rq_max_sges;
 	init_attr->cap.max_inline_data = T4_MAX_SEND_INLINE;
-	init_attr->sq_sig_type = qhp->sq_sig_all ? IB_SIGNAL_ALL_WR : 0;
+	init_attr->sq_sig_type = qhp->sq_sig_all ? IB_SIGNAL_ALL_WR : IB_SIGNAL_REQ_WR;
 	return 0;
 }