diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2025-11-22 14:29:35 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2025-11-22 14:29:35 +0000 |
| commit | 99b3c9adbc4152ceae234d21b6d0d19e2d0ea7d9 (patch) | |
| tree | 232f7c3e359d7e9cfa713a878cece7a19cb939fa | |
| parent | 5a94c2e89f6a4fbdea49d6c3a51b5fe0154d2495 (diff) | |
sfxge: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision: https://reviews.freebsd.org/D53102
Reviewed by: arybchik, zlei
Sponsored by: Netflix
| -rw-r--r-- | sys/dev/sfxge/sfxge.c | 2 | ||||
| -rw-r--r-- | sys/dev/sfxge/sfxge_rx.c | 14 |
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/sfxge/sfxge.c b/sys/dev/sfxge/sfxge.c index 7d3217fb50de..5ad9313a841f 100644 --- a/sys/dev/sfxge/sfxge.c +++ b/sys/dev/sfxge/sfxge.c @@ -60,9 +60,7 @@ #include <net/if_media.h> #include <net/if_types.h> -#ifdef RSS #include <net/rss_config.h> -#endif #include "common/efx.h" diff --git a/sys/dev/sfxge/sfxge_rx.c b/sys/dev/sfxge/sfxge_rx.c index 7e0948425d77..961fea2e5f79 100644 --- a/sys/dev/sfxge/sfxge_rx.c +++ b/sys/dev/sfxge/sfxge_rx.c @@ -57,9 +57,7 @@ #include <machine/in_cksum.h> -#ifdef RSS #include <net/rss_config.h> -#endif #include "common/efx.h" @@ -165,17 +163,7 @@ sfxge_rx_qflush_failed(struct sfxge_rxq *rxq) rxq->flush_state = SFXGE_FLUSH_FAILED; } -#ifdef RSS static uint8_t toep_key[RSS_KEYSIZE]; -#else -static uint8_t toep_key[] = { - 0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2, - 0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0, - 0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4, - 0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c, - 0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa -}; -#endif static void sfxge_rx_post_refill(void *arg) @@ -1143,9 +1131,7 @@ sfxge_rx_start(struct sfxge_softc *sc) EFX_RX_HASH_IPV4 | EFX_RX_HASH_TCPIPV4 | EFX_RX_HASH_IPV6 | EFX_RX_HASH_TCPIPV6, B_TRUE); -#ifdef RSS rss_getkey(toep_key); -#endif if ((rc = efx_rx_scale_key_set(sc->enp, EFX_RSS_CONTEXT_DEFAULT, toep_key, sizeof(toep_key))) != 0) |
