RDMA/usnic: Refactor usnic_uiom_alloc_pd()
authorRobin Murphy <robin.murphy@arm.com>
Tue, 5 Apr 2022 14:35:59 +0000 (15:35 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 8 Apr 2022 17:20:20 +0000 (14:20 -0300)
commitcc97c6d94ed536020ab26d5c2951958a3735f4c6
tree0c6120b5af9263b7a637ed9236a7daea15cc9538
parentd9539fb7c21ef5f47db0aeed0c32588479e32184
RDMA/usnic: Refactor usnic_uiom_alloc_pd()

Rather than hard-coding pci_bus_type, pass the PF device through to
usnic_uiom_alloc_pd() and retrieve its bus there. This prepares for
iommu_domain_alloc() changing to take a device rather than a bus_type.

Link: https://lore.kernel.org/r/ef607cb3f5a09920b86971b8c8e60af8c647457e.1649169359.git.robin.murphy@arm.com
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/usnic/usnic_ib_verbs.c
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/infiniband/hw/usnic/usnic_uiom.h