Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178387765
D62515.1796644226.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
D62515.1796644226.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 7, 11:50 AM (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42270546
Default Alt Text
D62515.1796644226.diff (1 KB)
Attached To
Mode
D62515: rss: Accept a card's address hash for an IPv4 fragment
Attached
Detach File
Event Timeline