summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-07-12 05:42:57 +0000
committeradrian <adrian@FreeBSD.org>2014-07-12 05:42:57 +0000
commit6a10a5d072f8b6bc2af35a5c1173f9435626360b (patch)
tree0bde4ca490efa74a0065a5ab70d993307acb38d1
parent01670bf02723bd0e0904c85b3d43d99f44f197b9 (diff)
downloadFreeBSD-src-6a10a5d072f8b6bc2af35a5c1173f9435626360b.zip
FreeBSD-src-6a10a5d072f8b6bc2af35a5c1173f9435626360b.tar.gz
Add some hash types for UDP RSS for both IPv4 and IPv6.
Nothing is yet using this but I'd like to reserve these values.
-rw-r--r--sys/sys/mbuf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index 83ad3c3..263115f 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -279,6 +279,7 @@ struct mbuf {
* that provide an opaque flow identifier, allowing for ordering and
* distribution without explicit affinity.
*/
+/* Microsoft RSS standard hash types */
#define M_HASHTYPE_NONE 0
#define M_HASHTYPE_RSS_IPV4 1 /* IPv4 2-tuple */
#define M_HASHTYPE_RSS_TCP_IPV4 2 /* TCPv4 4-tuple */
@@ -286,6 +287,12 @@ struct mbuf {
#define M_HASHTYPE_RSS_TCP_IPV6 4 /* TCPv6 4-tuple */
#define M_HASHTYPE_RSS_IPV6_EX 5 /* IPv6 2-tuple + ext hdrs */
#define M_HASHTYPE_RSS_TCP_IPV6_EX 6 /* TCPv6 4-tiple + ext hdrs */
+/* Non-standard RSS hash types */
+#define M_HASHTYPE_RSS_UDP_IPV4 7 /* IPv4 UDP 4-tuple */
+#define M_HASHTYPE_RSS_UDP_IPV4_EX 8 /* IPv4 UDP 4-tuple + ext hdrs */
+#define M_HASHTYPE_RSS_UDP_IPV6 9 /* IPv6 UDP 4-tuple */
+#define M_HASHTYPE_RSS_UDP_IPV6_EX 10 /* IPv6 UDP 4-tuple + ext hdrs */
+
#define M_HASHTYPE_OPAQUE 255 /* ordering, not affinity */
#define M_HASHTYPE_CLEAR(m) ((m)->m_pkthdr.rsstype = 0)
OpenPOWER on IntegriCloud