]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/IOV: Rename and export virtfn_{add, remove}
authorWei Yang <weiyang@linux.vnet.ibm.com>
Thu, 3 Mar 2016 23:53:03 +0000 (10:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Mar 2016 22:58:13 +0000 (09:58 +1100)
commit72e07c00625e6ab1451b32972d9960f2819cefc8
treecc54089468d7409d3937cab8a1a32523023aeea2
parenta76df4943596a2f95064a0be45ef27456cfba8e5
PCI/IOV: Rename and export virtfn_{add, remove}

During EEH recovery, hotplug is applied to the devices which don't
have drivers or their drivers don't support EEH. However, the hotplug,
which was implemented based on PCI bus, can't be applied to VF directly.
Instead, we unplug and plug individual PCI devices (VFs).

This renames virtn_{add,remove}() and exports them so they can be used
in PCI hotplug during EEH recovery.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/pci/iov.c
include/linux/pci.h