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.
This commit is contained in:
adrian 2014-07-12 05:42:57 +00:00
parent 01670bf027
commit 6a10a5d072

View File

@ -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)