Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177926674
D53099.1795583418.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D53099.1795583418.diff
View Options
diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c
--- a/sys/dev/hyperv/netvsc/if_hn.c
+++ b/sys/dev/hyperv/netvsc/if_hn.c
@@ -98,9 +98,7 @@
#include <net/if_types.h>
#include <net/if_var.h>
#include <net/rndis.h>
-#ifdef RSS
#include <net/rss_config.h>
-#endif
#include <netinet/in_systm.h>
#include <netinet/in.h>
@@ -621,17 +619,6 @@
static int hn_vfmap_size;
static if_t *hn_vfmap;
-#ifndef RSS
-static const uint8_t
-hn_rss_key_default[NDIS_HASH_KEYSIZE_TOEPLITZ] = {
- 0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2,
- 0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0,
- 0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4,
- 0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c,
- 0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa
-};
-#endif /* !RSS */
-
static const struct hyperv_guid hn_guid = {
.hv_guid = {
0x63, 0x51, 0x61, 0xf8, 0x3e, 0xdf, 0xc5, 0x46,
@@ -6552,11 +6539,7 @@
*/
if (bootverbose)
if_printf(sc->hn_ifp, "setup default RSS key\n");
-#ifdef RSS
rss_getkey(rss->rss_key);
-#else
- memcpy(rss->rss_key, hn_rss_key_default, sizeof(rss->rss_key));
-#endif
sc->hn_flags |= HN_FLAG_HAS_RSSKEY;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 25, 5:10 AM (23 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41979964
Default Alt Text
D53099.1795583418.diff (1 KB)
Attached To
Mode
D53099: hn: use newly exposed RSS hash key API rather than ad-hoc hashing
Attached
Detach File
Event Timeline