RDMA/bnxt_re: Add support for dmabuf pinned memory regions
authorSaravanan Vajravel <saravanan.vajravel@broadcom.com>
Mon, 31 Jul 2023 08:01:13 +0000 (01:01 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 15 Aug 2023 18:54:08 +0000 (15:54 -0300)
commit0a30e59f22b207f2ed415daa44cfc0533adc329e
tree1716dd30084346a93b536a3166f5bc14cc310ec9
parent213d2b9bb2d6aa50f9cbc02a0eea2096899d2e75
RDMA/bnxt_re: Add support for dmabuf pinned memory regions

Support the new verb which indicates dmabuf support.  bnxt doesn't support
ODP. So use the pinned version of the dmabuf APIs to enable bnxt_re
devices to work as dmabuf importer.

Link: https://lore.kernel.org/r/1690790473-25850-2-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Saravanan Vajravel <saravanan.vajravel@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/ib_verbs.h
drivers/infiniband/hw/bnxt_re/main.c