Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157568571
D55196.id.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
D55196.id.diff
View Options
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -1173,7 +1173,7 @@
return (-1); /* Do not send RST */
}
#endif /* TCP_SIGNATURE */
- if (m != NULL && M_HASHTYPE_GET(m) != M_HASHTYPE_NONE) {
+ if (m != NULL && M_HASHTYPE_ISHASH_TCP(m)) {
sc->sc_flowid = m->m_pkthdr.flowid;
sc->sc_flowtype = M_HASHTYPE_GET(m);
}
@@ -1771,7 +1771,7 @@
sc->sc_flowlabel = htonl(sc->sc_flowlabel) & IPV6_FLOWLABEL_MASK;
}
#endif
- if (m != NULL && M_HASHTYPE_GET(m) != M_HASHTYPE_NONE) {
+ if (m != NULL && M_HASHTYPE_ISHASH_TCP(m)) {
sc->sc_flowid = m->m_pkthdr.flowid;
sc->sc_flowtype = M_HASHTYPE_GET(m);
}
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -579,6 +579,10 @@
#define M_HASHTYPE_TEST(m, v) (M_HASHTYPE_GET(m) == (v))
#define M_HASHTYPE_ISHASH(m) \
(((m)->m_pkthdr.rsstype & M_HASHTYPE_HASHPROP) != 0)
+#define M_HASHTYPE_ISHASH_TCP(m) \
+ (((m)->m_pkthdr.rsstype & (M_HASHTYPE_RSS_TCP_IPV4 | \
+ M_HASHTYPE_RSS_TCP_IPV6 | \
+ M_HASHTYPE_RSS_TCP_IPV6_EX)) != 0)
#define M_HASHTYPE_SETINNER(m) do { \
(m)->m_pkthdr.rsstype |= M_HASHTYPE_INNER; \
} while (0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 23, 10:28 PM (11 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33456576
Default Alt Text
D55196.id.diff (1 KB)
Attached To
Mode
D55196: tcp: restrict flowtype copying to specific RSS TCP types
Attached
Detach File
Event Timeline
Log In to Comment