RDMA/bnxt_re: Code refactor while populating user MRs
authorSelvin Xavier <selvin.xavier@broadcom.com>
Thu, 7 Jan 2021 09:43:27 +0000 (01:43 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 18 Jan 2021 20:56:08 +0000 (16:56 -0400)
commitf6919d56388c95dba2e630670a77c380e4616c50
tree0ea4b8a9e3b9a3b005401709a987142cf48d94de
parent1bbd4380744f637a759e0a7bb7d8d1c38282e0c3
RDMA/bnxt_re: Code refactor while populating user MRs

Refactor code that populates MR page buffer list. Instead of allocating a
pbl_tbl to hold the buffer list, pass the struct ib_umem directly to
bnxt_qplib_alloc_init_hwq() as done for other user space memories.  Fix
the PBL level to handle the above mentioned change.

Also, remove an unwanted flag from the input to bnxt_qplib_reg_mr()
function.

Link: https://lore.kernel.org/r/1610012608-14528-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/qplib_sp.c
drivers/infiniband/hw/bnxt_re/qplib_sp.h