Page MenuHomeFreeBSD

sfxge(4): honour packed stream RSS restriction
ClosedPublic

Authored by arybchik on Nov 21 2018, 11:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 5:39 PM
Unknown Object (File)
Fri, Apr 26, 5:33 PM
Unknown Object (File)
Fri, Apr 26, 5:32 PM
Unknown Object (File)
Fri, Apr 26, 1:26 PM
Unknown Object (File)
Dec 28 2023, 6:55 AM
Unknown Object (File)
Dec 23 2023, 1:02 AM
Unknown Object (File)
Nov 29 2023, 5:02 AM
Unknown Object (File)
Nov 3 2023, 11:51 PM
Subscribers

Details

Summary

Packed stream firmware variant on EF10 adapters has a
number of properties which must be taken into account:

  • Only one exclusive RSS context is available per port.
  • Only IP addresses can contribute to the hash value.

Huntington and Medford have one more limitation which
is important for the drivers capable of packed stream:

  • Hash algorithm is non-standard (i.e. non-Toeplitz). This implies XORing together source + destination IP addresses (or last four bytes in the case of IPv6) and using the result as the input to a Toeplitz hash.

This patch provides a number of improvements in order
to treat the mentioned limitations in the common code.

If the firmware variant is packed stream, the list of
supported hash tuples will include less variants, and
the maximum number of RSS contexts will be set to one.

Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.

Test Plan

amd64 tinderbox kernel builds tested
driver loaded/unloaded, interfaces up/down, traffic works fine

Diff Detail

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

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 29 2018, 6:45 AM
This revision was automatically updated to reflect the committed changes.