Page MenuHomeFreeBSD

D62515.1796618275.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62515.1796618275.diff

diff --git a/sys/netinet/in_rss.c b/sys/netinet/in_rss.c
--- a/sys/netinet/in_rss.c
+++ b/sys/netinet/in_rss.c
@@ -257,6 +257,9 @@
* 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.
+ *
+ * Fragments are hashed on their addresses only, the first one
+ * too, so the 2-tuple hash is the one a fragment needs.
*/
flowtype = M_HASHTYPE_GET(m);
@@ -270,10 +273,11 @@
}
/*
* Only allow 2-tuple for UDP frames if we don't also
- * support 4-tuple for UDP.
+ * support 4-tuple for UDP, or for a fragment.
*/
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_IPV4) &&
- ((rss_gethashconfig() & RSS_HASHTYPE_RSS_UDP_IPV4) == 0) &&
+ (is_frag != 0 || (rss_gethashconfig() &
+ RSS_HASHTYPE_RSS_UDP_IPV4) == 0) &&
flowtype == M_HASHTYPE_RSS_IPV4) {
return (1);
}
@@ -286,10 +290,11 @@
}
/*
* Only allow 2-tuple for TCP frames if we don't also
- * support 4-tuple for TCP.
+ * support 4-tuple for TCP, or for a fragment.
*/
if ((rss_gethashconfig() & RSS_HASHTYPE_RSS_IPV4) &&
- ((rss_gethashconfig() & RSS_HASHTYPE_RSS_TCP_IPV4) == 0) &&
+ (is_frag != 0 || (rss_gethashconfig() &
+ RSS_HASHTYPE_RSS_TCP_IPV4) == 0) &&
flowtype == M_HASHTYPE_RSS_IPV4) {
return (1);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 7, 4:37 AM (14 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42270546
Default Alt Text
D62515.1796618275.diff (1 KB)

Event Timeline