summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-07-18 08:22:13 +0000
committeradrian <adrian@FreeBSD.org>2014-07-18 08:22:13 +0000
commit036f4e134053e5698cbd615fa238881fec7abbcc (patch)
treede6555847c1a35dd2c5c33626876f2c4c521f42b /sys/netinet
parent736f6d5f7bb39a355c9a56506a2662cee704451b (diff)
downloadFreeBSD-src-036f4e134053e5698cbd615fa238881fec7abbcc.zip
FreeBSD-src-036f4e134053e5698cbd615fa238881fec7abbcc.tar.gz
Update the default RSS hash to the Chelsio T5 firmware one - it provides
markedly better distribution of IPv6 address/ports than the previous key. The previous key would hash large swaths of the port space for a given source/destination IP address to the same low handful of bits, effectively mapping them to the same queue. This made testing very .. special.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_rss.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/in_rss.c b/sys/netinet/in_rss.c
index fac083e..7bf63c6 100644
--- a/sys/netinet/in_rss.c
+++ b/sys/netinet/in_rss.c
@@ -149,16 +149,16 @@ SYSCTL_INT(_net_inet_rss, OID_AUTO, basecpu, CTLFLAG_RD,
*
* XXXRW: And that we don't randomize it yet!
*
- * XXXRW: This default is actually the default key from Chelsio T3 cards, as
+ * XXXRW: This default is actually the default key from Chelsio T5 cards, as
* it offers reasonable distribution, unlike all-0 keys which always
* generate a hash of 0 (upsettingly).
*/
-static uint8_t rss_key[RSS_KEYSIZE] = {
+static uint8_t rss_key[RSS_KEYSIZE] = {
+ 0xbe, 0xac, 0x01, 0xfa, 0x6a, 0x42, 0xb7, 0x3b,
+ 0x80, 0x30, 0xf2, 0x0c, 0x77, 0xcb, 0x2d, 0xa3,
+ 0xae, 0x7b, 0x30, 0xb4, 0xd0, 0xca, 0x2b, 0xcb,
0x43, 0xa3, 0x8f, 0xb0, 0x41, 0x67, 0x25, 0x3d,
0x25, 0x5b, 0x0e, 0xc2, 0x6d, 0x5a, 0x56, 0xda,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
/*
OpenPOWER on IntegriCloud