Re: [RFC 1/2] PCI/IOV: Introduce pci_iov_sysfs_link() function

2020-05-07 Thread Bjorn Helgaas
On Thu, May 07, 2020 at 09:48:30AM +0200, Niklas Schnelle wrote: > On 5/6/20 11:10 PM, Bjorn Helgaas wrote: > > On Wed, May 06, 2020 at 05:41:38PM +0200, Niklas Schnelle wrote: > >> currently pci_iov_add_virtfn() scans the SR-IOV bars, adds the VF to the > >> bus and also creates the sysfs links

Re: [RFC 1/2] PCI/IOV: Introduce pci_iov_sysfs_link() function

2020-05-07 Thread Niklas Schnelle
On 5/6/20 11:10 PM, Bjorn Helgaas wrote: > On Wed, May 06, 2020 at 05:41:38PM +0200, Niklas Schnelle wrote: >> 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. > >

Re: [RFC 1/2] PCI/IOV: Introduce pci_iov_sysfs_link() function

2020-05-06 Thread Bjorn Helgaas
On Wed, May 06, 2020 at 05:41:38PM +0200, Niklas Schnelle wrote: > 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. s/currently/Currently/ s/bars/BARs/ > With pdev->no_vf_scan fencing

[RFC 1/2] PCI/IOV: Introduce pci_iov_sysfs_link() function

2020-05-06 Thread Niklas Schnelle
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