diff options
author | Guoqing Jiang <guoqing.jiang@linux.dev> | 2023-07-31 17:21:06 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-08-13 10:26:11 +0300 |
commit | 25944c068139f6eabc1418458479c30c2f6b2f10 (patch) | |
tree | 9a4f6c60fda6173fb0375dce7db8df96232c649d /drivers/infiniband/hw | |
parent | d952f54d01ec2ea5ee9d5e21f2ea3a5807b4bcbc (diff) | |
download | linux-stable-25944c068139f6eabc1418458479c30c2f6b2f10.tar.gz linux-stable-25944c068139f6eabc1418458479c30c2f6b2f10.tar.bz2 linux-stable-25944c068139f6eabc1418458479c30c2f6b2f10.zip |
RDMA/cxgb4: Set sq_sig_type correctly
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>
Link: https://lore.kernel.org/r/20230731092106.10396-1-guoqing.jiang@linux.dev
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |