]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allocate four bits from the mbuf flags field to represent the hash
authorrwatson <rwatson@FreeBSD.org>
Sat, 4 Jun 2011 23:31:41 +0000 (23:31 +0000)
committerrwatson <rwatson@FreeBSD.org>
Sat, 4 Jun 2011 23:31:41 +0000 (23:31 +0000)
commit553aca05636a36df8e31606f4802e0e262bbdd0b
tree39a24af3ec93918ed5a641d6c80fcfd1edf42a45
parente420fa8231e4613315fa0cf023046b5405070a4e
Allocate four bits from the mbuf flags field to represent the hash
type of a software- or hardware-generated hash held in the
mbuf.m_pkthdr.flowid field, and provide accessor macros to easily
clear, set, receive, and test for hash values.  Some of these
constants correspond to RSS hash types, but we don't want to limit
ourselves to that, as a number of other hashing techniques are in
use on hardware supported by FreeBSD.

Mark the M_FLOWID flag as deprecated; I hope to remove this before
9.0, changing drivers and the stack over to using the new
M_HASHTYPEBITS, most likely to use M_HASHTYPE_OPAQUE as we don't yet
want to nail down the KPI for RSS key/bucket management for device
drivers.

MFC after:      3 days
Reviewed by:    bz
Sponsored by:   Juniper Networks, Inc.
sys/sys/mbuf.h