iommu/vt-d: Introduce is_downstream_to_pci_bridge helper
authorEric Auger <eric.auger@redhat.com>
Mon, 3 Jun 2019 06:53:32 +0000 (08:53 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Jun 2019 08:32:59 +0000 (10:32 +0200)
commitb9a7f9816483b19360b92e9b8c91bea2f9f30308
tree4222f116d83c058cde1815a1fa37a4bfdf0ed86e
parent5f64ce5411b467f1cfea6c63e2494c22b773582b
iommu/vt-d: Introduce is_downstream_to_pci_bridge helper

Several call sites are about to check whether a device belongs
to the PCI sub-hierarchy of a candidate PCI-PCI bridge.
Introduce an helper to perform that check.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c