Page MenuHomeFreeBSD

sfxge: [EF10] support RxQ scattering control
ClosedPublic

Authored by arybchik on Dec 3 2015, 8:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 11:15 AM
Unknown Object (File)
Dec 13 2023, 4:18 AM
Unknown Object (File)
Nov 30 2023, 7:12 AM
Unknown Object (File)
Aug 22 2023, 1:50 AM
Unknown Object (File)
Oct 1 2016, 5:22 AM
Unknown Object (File)
Apr 6 2016, 9:00 AM
Unknown Object (File)
Feb 3 2016, 12:43 PM
Unknown Object (File)
Feb 2 2016, 6:59 PM
Subscribers

Details

Summary

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

Test Plan

Build tested, driver loaded/unloaded

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

arybchik retitled this revision from to sfxge: [EF10] support RxQ scattering control.
arybchik updated this object.
arybchik edited the test plan for this revision. (Show Details)
arybchik added reviewers: gnn, philip, bz, np.
This revision was automatically updated to reflect the committed changes.