]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44068140da576459b482d25ac4de036328cf6730
tree0c6120b5af9263b7a637ed9236a7daea15cc9538
parent97372a62e83bb1e4957768eae2b57860acb0c19a
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