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
This commit is contained in:
Andrew Gallatin
2025-11-22 09:29:35 -05:00
parent 99b3c9adbc
commit cfad68c5c6
2 changed files with 1 additions and 8 deletions
+1 -6
View File
@@ -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]);
-2
View File
@@ -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