freebsd-dev/sys/dev/sfxge/common
Andrew Rybchenko ca8c913582 sfxge: [EF10] support RxQ scattering control
If, for example, a VF is configured to use a 1500 byte MTU, but the port
it is attached to is set to 9000 bytes, overlength frames can be received
by the VF. As Huntington scatters by default, these overlength packets
would be scattered across several descriptors, with all except the last
having the CONT bit set.

To avoid this, disable scatter when creating RXQs if the firmware
supports doing so, which all recent versions do. Then we only get
a single descriptor from an overlength frame. This will have the CONT
bit set to indicate it was truncated, so we can discard it.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D4354
2015-12-04 06:54:46 +00:00
..
ef10_tlv_layout.h sfxge: sync TLV layout headers with firmwaresrc for event merging config 2015-12-03 07:22:53 +00:00
efsys.h sfxge: add MCDI logging support to common code 2015-12-03 07:13:13 +00:00
efx_bootcfg.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_check.h sfxge: add MCDI logging support to common code 2015-12-03 07:13:13 +00:00
efx_crc32.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
efx_ev.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_filter.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_hash.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
efx_impl.h sfxge: add additional WRITESIZE value for NVRAM_INFO command 2015-12-04 06:51:37 +00:00
efx_intr.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_mac.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_mcdi.c sfxge: add MCDI logging support to common code 2015-12-03 07:13:13 +00:00
efx_mcdi.h sfxge: add function to query link control privilege 2015-12-01 15:38:39 +00:00
efx_mon.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_nic.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_nvram.c sfxge: add additional WRITESIZE value for NVRAM_INFO command 2015-12-04 06:51:37 +00:00
efx_phy_ids.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
efx_phy.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_port.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_regs_ef10.h sfxge: remove internal register definitions that should not be used by host code 2015-12-03 07:28:57 +00:00
efx_regs_mcdi.h sfxge: regenerate MCDI headers 2015-12-03 08:06:10 +00:00
efx_regs_pci.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
efx_regs.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
efx_rx.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_sram.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_tx.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_types.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
efx_vpd.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx_wol.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
efx.h sfxge: [EF10] support RxQ scattering control 2015-12-04 06:54:46 +00:00
hunt_ev.c sfxge: [EF10] support RxQ scattering control 2015-12-04 06:54:46 +00:00
hunt_filter.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
hunt_impl.h sfxge: add function to query link control privilege 2015-12-01 15:38:39 +00:00
hunt_intr.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
hunt_mac.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
hunt_mcdi.c sfxge: add MCDI logging support to common code 2015-12-03 07:13:13 +00:00
hunt_nic.c sfxge: [EF10] support RxQ scattering control 2015-12-04 06:54:46 +00:00
hunt_nvram.c sfxge: add additional WRITESIZE value for NVRAM_INFO command 2015-12-04 06:51:37 +00:00
hunt_phy.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
hunt_rx.c sfxge: [EF10] support RxQ scattering control 2015-12-04 06:54:46 +00:00
hunt_sram.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
hunt_tx.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
hunt_vpd.c sfxge: add additional WRITESIZE value for NVRAM_INFO command 2015-12-04 06:51:37 +00:00
mcdi_mon.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
mcdi_mon.h sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
siena_flash.h sfxge: do not use unnamed union in siena_mc_combo_rom_hdr_t 2015-11-27 15:54:36 +00:00
siena_impl.h sfxge: add function to query link control privilege 2015-12-01 15:38:39 +00:00
siena_mac.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
siena_mcdi.c sfxge: add MCDI logging support to common code 2015-12-03 07:13:13 +00:00
siena_nic.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
siena_nvram.c sfxge: add additional WRITESIZE value for NVRAM_INFO command 2015-12-04 06:51:37 +00:00
siena_phy.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
siena_sram.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00
siena_vpd.c sfxge: add prefast annotation to common code return types 2015-11-29 05:42:49 +00:00