pci: fix max VFs for non igb_uio drivers
authorMichael Qiu <michael.qiu@intel.com>
Wed, 11 Feb 2015 13:25:55 +0000 (21:25 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 13 Feb 2015 13:48:16 +0000 (14:48 +0100)
commited2547b68fb0b47d2b17ce6a16a5b8f299b0ead4
tree12b95f780e7659853c2d24b7cb29594d726cc672
parente693b0100f6db161ed7a6a71695b4e7f996e4e7c
pci: fix max VFs for non igb_uio drivers

max_vfs will only be created by igb_uio driver, for other
drivers like vfio or pci_uio_generic, max_vfs will miss.

But sriov_numvfs is not driver related, just get the vf numbers
from that field.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/linuxapp/eal/eal_pci.c