Return number of vfs associated with a pf device_release_driver
int pci_num_vf(struct pci_dev * dev);
dev
the PCI device
Returns number of VFs, or 0 if SR-IOV is not enabled.