freebsd-dev/sys/dev/vnic
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
..
lmac_if.m
mrml_bridge.c Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it. 2016-02-20 01:32:58 +00:00
nic_main.c Fix number of the enabled VFs in VNIC 2016-03-31 16:44:32 +00:00
nic_reg.h Fix VNIC support for Pass2.0 ThunderX chips 2016-02-25 14:26:13 +00:00
nic.h Introduce HW TSO support for VNIC 2016-02-25 14:29:57 +00:00
nicvf_main.c Don't omit m_dup() for non-writeable mbufs that need checksum calculation 2016-03-31 13:23:43 +00:00
nicvf_queues.c Improve TX path of the VNIC driver 2016-03-31 13:10:29 +00:00
nicvf_queues.h Improve TX path of the VNIC driver 2016-03-31 13:10:29 +00:00
q_struct.h Introduce HW TSO support for VNIC 2016-02-25 14:29:57 +00:00
thunder_bgx_fdt.c Fix MAC address configuration for VNIC 2016-03-31 13:13:38 +00:00
thunder_bgx_var.h Fix finding appropriate BGX node in DTB and move it to a separate function 2016-01-28 15:30:58 +00:00
thunder_bgx.c Fix finding appropriate BGX node in DTB and move it to a separate function 2016-01-28 15:30:58 +00:00
thunder_bgx.h
thunder_mdio_fdt.c Support new MDIO hierarchy in ThunderX DTB 2016-01-28 15:44:14 +00:00
thunder_mdio_var.h Support new MDIO hierarchy in ThunderX DTB 2016-01-28 15:44:14 +00:00
thunder_mdio.c Introduce driver for Cavium's ThunderX MDIO 2015-10-18 22:10:08 +00:00