git: 7906fac4c594 - stable/15 - igc: use newly exposed RSS hash key API rather than ad-hoc hashing

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Thu, 29 Oct 2026 06:35:17 UTC
The branch stable/15 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=7906fac4c594cd85a95e78441ea0a0e9d5989b0d

commit 7906fac4c594cd85a95e78441ea0a0e9d5989b0d
Author:     Andrew Gallatin <gallatin@FreeBSD.org>
AuthorDate: 2025-11-22 14:29:35 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-10-29 06:26:40 +0000

    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
    
    (cherry picked from commit cfad68c5c6b9c1a203b3c3777e252048df92281d)
---
 sys/dev/igc/if_igc.c   | 7 +------
 sys/dev/igc/igc_txrx.c | 2 --
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
index 37eef6e84d63..08d15ae14141 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
@@ -2302,12 +2301,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 4f6e57083894..c2b1ef22e771 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