Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177926690
D53103.1795583476.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
974 B
Referenced Files
None
Subscribers
None
D53103.1795583476.diff
View Options
diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
--- 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 @@
*/
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
--- 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 5:11 AM (23 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41979977
Default Alt Text
D53103.1795583476.diff (974 B)
Attached To
Mode
D53103: igc: use newly exposed RSS hash key API rather than ad-hoc hashing
Attached
Detach File
Event Timeline