s390/pci: Pull search for parent PF out of zpci_iov_setup_virtfn()
This creates a new zpci_iov_find_parent_pf() function which a future commit can use to find if a VF has a configured parent PF. Use zdev->rid instead of zdev->devfn such that the new function can be used before it has been decided if the RID will be exposed and zdev->devfn is set. Also handle the hypotheical case that the RID is not available but there is an otherwise matching zbus. Fixes: 25f39d3d ("s390/pci: Ignore RID for isolated VFs") Cc: stable@vger.kernel.org Reviewed-by:Halil Pasic <pasic@linux.ibm.com> Signed-off-by:
Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by:
Vasily Gorbik <gor@linux.ibm.com>
Loading
Please register or sign in to comment