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)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 7 Dec 2021 18:59:26 +0000 (14:59 -0400)
commitb1a4da64bfc189510e08df1ccb1c589e667dc7a3
treef19d353e724548f23bab0a2051dbbd933de91332
parent3fe6d228a0b45a205849daa110b908e8a4dbed80
RDMA/qedr: Fix reporting max_{send/recv}_wr attrs

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>
drivers/infiniband/hw/qedr/verbs.c