Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172513158
D59804.id187063.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
796 B
Referenced Files
None
Subscribers
None
D59804.id187063.diff
View Options
diff --git a/sys/dev/al_eth/al_eth.c b/sys/dev/al_eth/al_eth.c
--- a/sys/dev/al_eth/al_eth.c
+++ b/sys/dev/al_eth/al_eth.c
@@ -55,6 +55,7 @@
#include <net/if_types.h>
#include <netinet/in.h>
#include <net/if_vlan_var.h>
+#include <net/rss_config.h>
#include <netinet/tcp.h>
#include <netinet/tcp_lro.h>
@@ -2960,8 +2961,9 @@
al_eth_mac_table_promiscuous_set(adapter, false);
/* set toeplitz hash keys */
- for (i = 0; i < sizeof(adapter->toeplitz_hash_key); i++)
- *((uint8_t*)adapter->toeplitz_hash_key + i) = (uint8_t)random();
+ _Static_assert(sizeof(adapter->toeplitz_hash_key) == RSS_KEYSIZE,
+ "RSS key size mismatch");
+ rss_getkey((uint8_t *)adapter->toeplitz_hash_key);
for (i = 0; i < AL_ETH_RX_HASH_KEY_NUM; i++)
al_eth_hash_key_set(&adapter->hal_adapter, i,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 11:21 PM (6 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39214671
Default Alt Text
D59804.id187063.diff (796 B)
Attached To
Mode
D59804: al_eth: Use the common RSS key
Attached
Detach File
Event Timeline
Log In to Comment