Page MenuHomeFreeBSD

D62512.1796675912.diff
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

D62512.1796675912.diff

diff --git a/sys/net/rss_config.c b/sys/net/rss_config.c
--- a/sys/net/rss_config.c
+++ b/sys/net/rss_config.c
@@ -398,6 +398,9 @@
case M_HASHTYPE_RSS_IPV6:
case M_HASHTYPE_RSS_TCP_IPV6:
case M_HASHTYPE_RSS_UDP_IPV6:
+ case M_HASHTYPE_RSS_IPV6_EX:
+ case M_HASHTYPE_RSS_TCP_IPV6_EX:
+ case M_HASHTYPE_RSS_UDP_IPV6_EX:
return (rss_getcpu(rss_getbucket(hash_val)));
default:
return (NETISR_CPUID_NONE);
@@ -419,6 +422,9 @@
case M_HASHTYPE_RSS_IPV6:
case M_HASHTYPE_RSS_TCP_IPV6:
case M_HASHTYPE_RSS_UDP_IPV6:
+ case M_HASHTYPE_RSS_IPV6_EX:
+ case M_HASHTYPE_RSS_TCP_IPV6_EX:
+ case M_HASHTYPE_RSS_UDP_IPV6_EX:
*bucket_id = rss_getbucket(hash_val);
return (0);
default:
diff --git a/sys/netinet6/in6_rss.c b/sys/netinet6/in6_rss.c
--- a/sys/netinet6/in6_rss.c
+++ b/sys/netinet6/in6_rss.c
@@ -289,6 +289,11 @@
* is supported but we got a TCP/UDP frame only 2-tuple hashed,
* then we shouldn't just "trust" the 2-tuple hash. We need
* a 4-tuple hash.
+ *
+ * The _EX variants are the same hashes, taken over the Home Address
+ * option and type 2 routing header addresses when those are present.
+ * A card that hashes this way reports the _EX type whether or not
+ * a packet has those headers.
*/
flowtype = M_HASHTYPE_GET(m);
@@ -296,7 +301,8 @@
switch (proto) {
case IPPROTO_UDP:
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_UDP_IPV6) &&
- (flowtype == M_HASHTYPE_RSS_UDP_IPV6)) {
+ (flowtype == M_HASHTYPE_RSS_UDP_IPV6 ||
+ flowtype == M_HASHTYPE_RSS_UDP_IPV6_EX)) {
return (1);
}
/*
@@ -305,13 +311,15 @@
*/
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_IPV6) &&
((rss_gethashconfig() & RSS_HASHTYPE_RSS_UDP_IPV6) == 0) &&
- flowtype == M_HASHTYPE_RSS_IPV6) {
+ (flowtype == M_HASHTYPE_RSS_IPV6 ||
+ flowtype == M_HASHTYPE_RSS_IPV6_EX)) {
return (1);
}
break;
case IPPROTO_TCP:
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_TCP_IPV6) &&
- (flowtype == M_HASHTYPE_RSS_TCP_IPV6)) {
+ (flowtype == M_HASHTYPE_RSS_TCP_IPV6 ||
+ flowtype == M_HASHTYPE_RSS_TCP_IPV6_EX)) {
return (1);
}
/*
@@ -320,13 +328,15 @@
*/
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_IPV6) &&
((rss_gethashconfig() & RSS_HASHTYPE_RSS_TCP_IPV6) == 0) &&
- flowtype == M_HASHTYPE_RSS_IPV6) {
+ (flowtype == M_HASHTYPE_RSS_IPV6 ||
+ flowtype == M_HASHTYPE_RSS_IPV6_EX)) {
return (1);
}
break;
default:
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_IPV6) &&
- flowtype == M_HASHTYPE_RSS_IPV6) {
+ (flowtype == M_HASHTYPE_RSS_IPV6 ||
+ flowtype == M_HASHTYPE_RSS_IPV6_EX)) {
return (1);
}
break;

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 7, 8:38 PM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42280252
Default Alt Text
D62512.1796675912.diff (2 KB)

Event Timeline