Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166979789
D53095.id164171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D53095.id164171.diff
View Options
diff --git a/sys/dev/iavf/iavf_lib.h b/sys/dev/iavf/iavf_lib.h
--- a/sys/dev/iavf/iavf_lib.h
+++ b/sys/dev/iavf/iavf_lib.h
@@ -42,9 +42,7 @@
#include <sys/malloc.h>
#include <sys/stdarg.h>
#include <sys/sysctl.h>
-#ifdef RSS
#include <net/rss_config.h>
-#endif
#include "iavf_debug.h"
#include "iavf_osdep.h"
diff --git a/sys/dev/iavf/iavf_lib.c b/sys/dev/iavf/iavf_lib.c
--- a/sys/dev/iavf/iavf_lib.c
+++ b/sys/dev/iavf/iavf_lib.c
@@ -1079,9 +1079,7 @@
u64 set_hena = 0, hena;
int i, j, que_id;
u32 rss_seed[IAVF_RSS_KEY_SIZE_REG];
-#ifdef RSS
u32 rss_hash_config;
-#endif
/* Don't set up RSS if using a single queue */
if (IAVF_NRXQS(vsi) == 1) {
@@ -1091,19 +1089,14 @@
return;
}
-#ifdef RSS
/* Fetch the configured RSS key */
rss_getkey((uint8_t *) &rss_seed);
-#else
- iavf_get_default_rss_key(rss_seed);
-#endif
/* Fill out hash function seed */
for (i = 0; i < IAVF_RSS_KEY_SIZE_REG; i++)
wr32(hw, IAVF_VFQF_HKEY(i), rss_seed[i]);
/* Enable PCTYPES for RSS: */
-#ifdef RSS
rss_hash_config = rss_gethashconfig();
if (rss_hash_config & RSS_HASHTYPE_RSS_IPV4)
set_hena |= ((u64)1 << IAVF_FILTER_PCTYPE_NONF_IPV4_OTHER);
@@ -1119,9 +1112,6 @@
set_hena |= ((u64)1 << IAVF_FILTER_PCTYPE_NONF_IPV6_TCP);
if (rss_hash_config & RSS_HASHTYPE_RSS_UDP_IPV6)
set_hena |= ((u64)1 << IAVF_FILTER_PCTYPE_NONF_IPV6_UDP);
-#else
- set_hena = IAVF_DEFAULT_RSS_HENA_XL710;
-#endif
hena = (u64)rd32(hw, IAVF_VFQF_HENA(0)) |
((u64)rd32(hw, IAVF_VFQF_HENA(1)) << 32);
hena |= set_hena;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 8:45 AM (12 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36923903
Default Alt Text
D53095.id164171.diff (1 KB)
Attached To
Mode
D53095: iavf: use newly exposed RSS hash key API rather than ad-hoc hashing
Attached
Detach File
Event Timeline
Log In to Comment