hselasky 12fec3618b Start process of removing the use of the deprecated "M_FLOWID" flag
from the FreeBSD network code. The flag is still kept around in the
"sys/mbuf.h" header file, but does no longer have any users. Instead
the "m_pkthdr.rsstype" field in the mbuf structure is now used to
decide the meaning of the "m_pkthdr.flowid" field. To modify the
"m_pkthdr.rsstype" field please use the existing "M_HASHTYPE_XXX"
macros as defined in the "sys/mbuf.h" header file.

This patch introduces new behaviour in the transmit direction.
Previously network drivers checked if "M_FLOWID" was set in "m_flags"
before using the "m_pkthdr.flowid" field. This check has now now been
replaced by checking if "M_HASHTYPE_GET(m)" is different from
"M_HASHTYPE_NONE". In the future more hashtypes will be added, for
example hashtypes for hardware dedicated flows.

"M_HASHTYPE_OPAQUE" indicates that the "m_pkthdr.flowid" value is
valid and has no particular type. This change removes the need for an
"if" statement in TCP transmit code checking for the presence of a
valid flowid value. The "if" statement mentioned above is now a direct
variable assignment which is then later checked by the respective
network drivers like before.

Additional notes:
- The SCTP code changes will be committed as a separate patch.
- Removal of the "M_FLOWID" flag will also be done separately.
- The FreeBSD version has been bumped.

MFC after:	1 month
Sponsored by:	Mellanox Technologies
2014-12-01 11:45:24 +00:00
..
2012-11-11 23:25:47 +00:00
2013-10-18 11:25:08 +00:00
2014-03-11 10:13:06 +00:00
2014-11-23 12:01:52 +00:00
2013-11-20 13:22:22 +00:00
2012-01-15 13:23:18 +00:00
2013-03-04 12:20:48 +00:00
2014-07-02 13:24:21 +00:00
2013-12-31 12:18:10 +00:00
2013-10-16 09:12:40 +00:00
2014-07-07 00:27:09 +00:00
2012-01-15 13:23:18 +00:00
2014-07-07 00:27:09 +00:00
2014-02-28 19:21:07 +00:00
2014-09-28 11:32:46 +00:00
2014-07-07 00:27:09 +00:00
2012-12-10 23:12:51 +00:00
2014-07-07 00:27:09 +00:00
2014-01-21 20:48:02 +00:00
2012-03-28 20:58:30 +00:00
2014-11-13 05:26:14 +00:00
MFC
2011-05-13 15:20:57 +00:00
2014-10-20 14:42:42 +00:00
2014-07-30 00:28:29 +00:00
2011-05-05 02:35:25 +00:00
2014-11-13 05:28:06 +00:00
2014-11-13 05:28:06 +00:00
2014-11-06 08:12:34 +00:00
2014-11-13 05:28:06 +00:00
2014-11-05 02:08:37 +00:00
2014-11-06 08:12:34 +00:00
2014-11-23 12:01:52 +00:00