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)
Sun, Dec 29, 12:42 PM
Unknown Object (File)
Dec 5 2024, 10:12 PM
Unknown Object (File)
Sep 29 2024, 1:29 AM
Unknown Object (File)
Sep 18 2024, 2:00 PM
Unknown Object (File)
Sep 14 2024, 4:26 AM
Unknown Object (File)
Sep 10 2024, 3:05 PM
Unknown Object (File)
Sep 8 2024, 1:28 PM
Unknown Object (File)
Sep 8 2024, 8:01 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21090
Build 20453: arc lint + arc unit

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.