Zbigniew Bodek 4764669155 Fix number of the enabled VFs in VNIC
nic->num_vf_en is set based on the number of the enabled LMACs.
This number should not be overwritten later by any routine.
Instead it should fail PCI_IOV_ADD_VF() so that available VFs
with the corresponding LMACs will attach whereas other, disabled
VFs will fail with the proper error code.
Error signaling (due to improper number of VFs requested) is also moved
from PCI_IOV_INIT() to PCI_IOV_ADD_VF().

This will be reworked when multiple queue sets are enabled but for
now this is the correct behavior of the driver.

Obtained from: Semihalf
Sponsored by:  Cavium
2016-03-31 16:44:32 +00:00
..
2016-03-30 17:32:14 +00:00
2016-03-30 17:32:14 +00:00
2016-03-30 16:54:18 +00:00
2016-03-31 16:44:32 +00:00
2016-03-31 00:53:23 +00:00
2016-03-31 00:53:23 +00:00
2016-03-16 06:42:15 +00:00
2016-03-10 15:51:43 +00:00
2015-11-12 10:31:14 +00:00