RDMA/cxgb4: Fix the reported max_recv_sge value
authorKamal Heib <kamalheib1@gmail.com>
Thu, 14 Jan 2021 19:14:23 +0000 (21:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2021 22:28:46 +0000 (23:28 +0100)
commit571a2dd89818d0d9ef4ad3eff45dba5ba56601de
tree4a5ec3549b56d3bc5e918cb350744413703cf927
parent0fade2af3eae6f88bf4f3ce6ae6edc177d6849cf
RDMA/cxgb4: Fix the reported max_recv_sge value

[ Upstream commit a372173bf314d374da4dd1155549d8ca7fc44709 ]

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: 3e5c02c9ef9a ("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>
drivers/infiniband/hw/cxgb4/qp.c