opnsense-src/sys/dev/sfxge
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
..
common sfxge: [EF10] support RxQ scattering control 2015-12-04 06:54:46 +00:00
sfxge.c sfxge: added setting TSO-related parameters 2015-12-01 06:29:11 +00:00
sfxge.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_dma.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_ev.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_intr.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_ioc.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_mcdi.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_nvram.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_port.c sfxge: mask ifmedia options (pauses) when looking for matching mode 2015-05-27 08:57:48 +00:00
sfxge_rx.c sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_rx.h sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
sfxge_tx.c sfxge: parse packets for TSO early in if_transmit 2015-12-01 14:55:24 +00:00
sfxge_tx.h sfxge: parse packets for TSO early in if_transmit 2015-12-01 14:55:24 +00:00
sfxge_version.h sfxge: do not use DEBUG_FLAGS to enable extra debug checks 2015-05-29 05:44:56 +00:00