RDMA/qedr: Fix reporting max_{send/recv}_wr attrs
authorKamal Heib <kamalheib1@gmail.com>
Mon, 6 Dec 2021 20:13:14 +0000 (22:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:06 +0000 (10:54 +0100)
commit7be2a0bcaf8e83f9a5eb47f98ad954d665c82dfd
tree325a2922d7d42a6558507ff426c86b0f0c3acd3b
parente19469468b7bebe3c5c3e1da348fb66adcdf510c
RDMA/qedr: Fix reporting max_{send/recv}_wr attrs

[ Upstream commit b1a4da64bfc189510e08df1ccb1c589e667dc7a3 ]

Fix the wrongly reported max_send_wr and max_recv_wr attributes for user
QP by making sure to save their valuse on QP creation, so when query QP is
called the attributes will be reported correctly.

Fixes: cecbcddf6461 ("qedr: Add support for QP verbs")
Link: https://lore.kernel.org/r/20211206201314.124947-1-kamalheib1@gmail.com
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/qedr/verbs.c