Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172509833
D59796.id187039.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D59796.id187039.diff
View Options
Index: sys/dev/bxe/bxe.c
===================================================================
--- sys/dev/bxe/bxe.c
+++ sys/dev/bxe/bxe.c
@@ -30,6 +30,7 @@
#define BXE_DRIVER_VERSION "1.78.91"
#include "bxe.h"
+#include <net/rss_config.h>
#include "ecore_sp.h"
#include "ecore_init.h"
#include "ecore_init_ops.h"
@@ -11483,7 +11484,6 @@
uint8_t config_hash)
{
struct ecore_config_rss_params params = { NULL };
- int i;
/*
* Although RSS is meaningless when there is a single HW queue we
@@ -11514,10 +11514,14 @@
memcpy(params.ind_table, rss_obj->ind_table, sizeof(params.ind_table));
if (config_hash) {
- /* RSS keys */
- for (i = 0; i < sizeof(params.rss_key) / 4; i++) {
- params.rss_key[i] = arc4random();
- }
+ uint8_t key[RSS_KEYSIZE];
+ unsigned int i;
+
+ /* The searcher consumes the key in reverse byte order. */
+ CTASSERT(sizeof(params.rss_key) == RSS_KEYSIZE);
+ rss_getkey(key);
+ for (i = 0; i < sizeof(key); i++)
+ ((uint8_t *)params.rss_key)[sizeof(key) - 1 - i] = key[i];
bxe_set_bit(ECORE_RSS_SET_SRCH, ¶ms.rss_flags);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 10:51 PM (6 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39256059
Default Alt Text
D59796.id187039.diff (1 KB)
Attached To
Mode
D59796: bxe: Program the common RSS key in searcher byte order
Attached
Detach File
Event Timeline
Log In to Comment