Skip to content

Commit 23aab66

Browse files
Kamalheibksacilotto
authored andcommitted
RDMA/cxgb4: Fix the reported max_recv_sge value
BugLink: https://bugs.launchpad.net/bugs/1916056 [ Upstream commit a372173 ] The max_recv_sge value is wrongly reported when calling query_qp, This is happening due to a typo when assigning the max_recv_sge value, the value of sq_max_sges was assigned instead of rq_max_sges. Fixes: 3e5c02c ("iw_cxgb4: Support query_qp() verb") Link: https://lore.kernel.org/r/20210114191423.423529-1-kamalheib1@gmail.com Signed-off-by: Kamal Heib <kamalheib1@gmail.com> Reviewed-by: Potnuri Bharat Teja <bharat@chelsio.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 62cf645 commit 23aab66

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/cxgb4

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/cxgb4/qp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,7 @@ int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
24712471
init_attr->cap.max_send_wr = qhp->attr.sq_num_entries;
24722472
init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries;
24732473
init_attr->cap.max_send_sge = qhp->attr.sq_max_sges;
2474-
init_attr->cap.max_recv_sge = qhp->attr.sq_max_sges;
2474+
init_attr->cap.max_recv_sge = qhp->attr.rq_max_sges;
24752475
init_attr->cap.max_inline_data = T4_MAX_SEND_INLINE;
24762476
init_attr->sq_sig_type = qhp->sq_sig_all ? IB_SIGNAL_ALL_WR : 0;
24772477
return 0;

0 commit comments

Comments
 (0)