Page MenuHomeFreeBSD

D59795.diff
No OneTemporary

D59795.diff

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

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)

Event Timeline