diff options
| author | R. Christian McDonald <rcm@FreeBSD.org> | 2026-12-06 20:39:14 +0000 |
|---|---|---|
| committer | R. Christian McDonald <rcm@FreeBSD.org> | 2026-12-06 20:39:14 +0000 |
| commit | ba5f4f4a9ee3628812e7f6b673dd2c4c99a7140c (patch) | |
| tree | ed6c17d25fcb3ca1890b43b450cbefa963150ed9 /lib/libsecureboot/efi/include/Protocol | |
| parent | 7d5c3cf5c4aada6bf80b8f9c1416bb7036f2212f (diff) | |
RSS defines _EX variants of the IPv6 hash types, which take the
addresses from a Home Address option or type 2 routing header when one
is present and are otherwise the same hash. The default hash
configuration lists them, and em(4), igb(4), igc(4) and ix(4) program
the card accordingly. An I226 then reports an _EX type for every IPv6
TCP packet, and for every IPv6 UDP packet when UDP ports are hashed.
rss_hash2cpuid(), rss_hash2bucket() and rss_mbuf_software_hash_v6() did
not accept the _EX types, so with options RSS and hybrid or deferred
dispatch, netisr hashed each of these packets again in software and got
the value the card had supplied. Accept the _EX types wherever the
plain ones are accepted.
On an Atom C1110 with I226 ports forwarding IPv6, the software hash took
28% of the forwarding core and matched the card's hash for all 1.2
million TCP and UDP packets compared. With this change toeplitz_hash()
ran 4 times in 603,600 packets, and one UDP flow went from 741 to 1086
kpps.
For TCP connections accepted on such a card, whose flow type is that of
the SYN, the timer and pacing CPU, the transmit bucket and
IPV6_RSSBUCKETID now also come from the card's hash.
Reviewed by: gallatin, adrian
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D62512
Diffstat (limited to 'lib/libsecureboot/efi/include/Protocol')
0 files changed, 0 insertions, 0 deletions
