1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/sys/dev/bxe
Hans Petter Selasky c25290420e 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
..
57710_init_values.c Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
57710_int_offsets.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
57711_init_values.c Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
57711_int_offsets.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
57712_init_values.c Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
57712_int_offsets.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
bxe_dcb.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
bxe_debug.c Convert bxe(4) to use the driver API. 2014-06-02 18:54:45 +00:00
bxe_elink.c Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
bxe_elink.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
bxe_stats.c - Use if_inc_counter() to increment various counters. 2014-09-18 15:56:14 +00:00
bxe_stats.h - Use if_inc_counter() to increment various counters. 2014-09-18 15:56:14 +00:00
bxe.c Start process of removing the use of the deprecated "M_FLOWID" flag 2014-12-01 11:45:24 +00:00
bxe.h Initiate error recovery stats fail to update after 3 retries. 2014-07-18 20:04:11 +00:00
ecore_fw_defs.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
ecore_hsi.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
ecore_init_ops.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
ecore_init.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
ecore_mfw_req.h Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
ecore_reg.h Initiate error recovery stats fail to update after 3 retries. 2014-07-18 20:04:11 +00:00
ecore_sp.c Modify Copyright information to reflect Qlogic Corporation's purchase 2014-05-06 02:32:27 +00:00
ecore_sp.h For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before 2014-09-17 22:49:29 +00:00