Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173255250
D59793.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
672 B
Referenced Files
None
Subscribers
None
D59793.diff
View Options
diff --git a/sys/dev/aq/aq_main.c b/sys/dev/aq/aq_main.c
--- a/sys/dev/aq/aq_main.c
+++ b/sys/dev/aq/aq_main.c
@@ -504,12 +504,13 @@
aq_add_stats_sysctls(softc);
/* RSS */
uint32_t rss_qs = MIN(softc->rx_rings_count, HW_ATL_RSS_INDIRECTION_QUEUES_MAX);
-#ifdef RSS
+ _Static_assert(sizeof(softc->rss_key) == RSS_KEYSIZE,
+ "RSS key size mismatch");
rss_getkey(softc->rss_key);
+#ifdef RSS
for (int i = nitems(softc->rss_table); i--;)
softc->rss_table[i] = rss_get_indirection_to_bucket(i) % rss_qs;
#else
- arc4rand(softc->rss_key, HW_ATL_RSS_HASHKEY_SIZE, 0);
for (int i = nitems(softc->rss_table); i--;)
softc->rss_table[i] = i % rss_qs;
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 25, 6:08 PM (18 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39214268
Default Alt Text
D59793.diff (672 B)
Attached To
Mode
D59793: aq: Use the common RSS key without options RSS
Attached
Detach File
Event Timeline
Log In to Comment