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)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 18 Jan 2021 21:05:46 +0000 (17:05 -0400)
commita372173bf314d374da4dd1155549d8ca7fc44709
treeb0d77265c10ab5ca41373a4cc6dffe1144293f2b
parent19c329f6808995b142b3966301f217c831e7cf31
RDMA/cxgb4: Fix the reported max_recv_sge value

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>
drivers/infiniband/hw/cxgb4/qp.c