]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/IOV: Introduce pci_iov_sysfs_link() function
authorNiklas Schnelle <schnelle@linux.ibm.com>
Mon, 27 Apr 2020 14:25:27 +0000 (16:25 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 20 May 2020 08:22:50 +0000 (10:22 +0200)
commitd9f0a42b706deabc3b5935fd483e4ed40d0d3fe5
tree117a6da2754c21aec5306a2db9e1c7352286b611
parentb89a06668078aa65dca39ac690af9e120385e6e0
PCI/IOV: Introduce pci_iov_sysfs_link() function

Currently pci_iov_add_virtfn() scans the SR-IOV BARs, adds the VF to the
bus and also creates the sysfs links between the newly added VF and its
parent PF.

With pdev->no_vf_scan fencing off the entire pci_iov_add_virtfn() call
s390 as the sole pdev->no_vf_scan user thus ends up missing these sysfs
links which are required for example by QEMU/libvirt.

Instead of duplicating the code refactor pci_iov_add_virtfn() to make
sysfs link creation callable separately.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Link: https://lore.kernel.org/r/20200506154139.90609-1-schnelle@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/pci/iov.c
include/linux/pci.h