aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2025-11-22 14:29:35 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2025-11-22 14:29:35 +0000
commitcfad68c5c6b9c1a203b3c3777e252048df92281d (patch)
tree73938122c82fbc42fcce0164fcacbbe5db42e8b3
parent99b3c9adbc4152ceae234d21b6d0d19e2d0ea7d9 (diff)
igc: use newly exposed RSS hash key API rather than ad-hoc hashing
Differential Revision: https://reviews.freebsd.org/D53103 Reviewed by: markj Sponsored by: Netflix
-rw-r--r--sys/dev/igc/if_igc.c7
-rw-r--r--sys/dev/igc/igc_txrx.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
index d6c06803990f..a4e5de2ae82a 100644
--- a/sys/dev/igc/if_igc.c
+++ b/sys/dev/igc/if_igc.c
@@ -32,10 +32,9 @@
#include <sys/sbuf.h>
#include <machine/_inttypes.h>
-#ifdef RSS
#include <net/rss_config.h>
#include <netinet/in_rss.h>
-#endif
+
/*********************************************************************
* PCI Device ID Table
@@ -1940,12 +1939,8 @@ igc_initialize_rss_mapping(struct igc_softc *sc)
*/
mrqc = IGC_MRQC_ENABLE_RSS_4Q;
-#ifdef RSS
/* XXX ew typecasting */
rss_getkey((uint8_t *) &rss_key);
-#else
- arc4rand(&rss_key, sizeof(rss_key), 0);
-#endif
for (i = 0; i < RSSKEYLEN; i++)
IGC_WRITE_REG_ARRAY(hw, IGC_RSSRK(0), i, rss_key[i]);
diff --git a/sys/dev/igc/igc_txrx.c b/sys/dev/igc/igc_txrx.c
index 92ba81c79c58..96949492fd24 100644
--- a/sys/dev/igc/igc_txrx.c
+++ b/sys/dev/igc/igc_txrx.c
@@ -30,10 +30,8 @@
#include <sys/cdefs.h>
#include "if_igc.h"
-#ifdef RSS
#include <net/rss_config.h>
#include <netinet/in_rss.h>
-#endif
#ifdef VERBOSE_DEBUG
#define DPRINTF device_printf