Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172435480
D59795.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
730 B
Referenced Files
None
Subscribers
None
D59795.diff
View Options
diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c
--- a/sys/dev/bnxt/bnxt_en/if_bnxt.c
+++ b/sys/dev/bnxt/bnxt_en/if_bnxt.c
@@ -48,6 +48,7 @@
#include <net/if_var.h>
#include <net/ethernet.h>
#include <net/iflib.h>
+#include <net/rss_config.h>
#define WANT_NATIVE_PCI_GET_SLOT
#include <linux/pci.h>
@@ -2954,7 +2955,9 @@
goto failed;
}
- arc4rand(softc->vnic_info.rss_hash_key, HW_HASH_KEY_SIZE, 0);
+ _Static_assert(HW_HASH_KEY_SIZE == RSS_KEYSIZE,
+ "RSS key size mismatch");
+ rss_getkey(softc->vnic_info.rss_hash_key);
/* Establish policy defaults before evaluating the loader tunables. */
softc->vnic_info.flags = BNXT_VNIC_FLAG_DEFAULT;
softc->vnic_info.rss_hash_type =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 11:02 AM (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39214347
Default Alt Text
D59795.diff (730 B)
Attached To
Mode
D59795: bnxt: Initialize RSS with the common key
Attached
Detach File
Event Timeline
Log In to Comment