]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:16:17 +0000 (23:16 +0100)
commit8b97c8c934c81583ced691c6116f932060580185
treeac2bc6480813541e93de92f4a4fc707be7e5475b
parentbdf1634d5e9db4de8aff50ac4b64437d85b2a02c
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