]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r275358 r275483 r276982 - Removing M_FLOWID by hps@
authorhiren <hiren@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 24 Apr 2015 23:26:44 +0000 (23:26 +0000)
committerhiren <hiren@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 24 Apr 2015 23:26:44 +0000 (23:26 +0000)
commit3ac2a41123c66d64e107f8dd72a1149300b7e8f3
treede613f73923e17e263a2e466febe13b7dc30ceaf
parent6a120eed6e557f429b48d4a2d1bf13e173eca2f5
MFC r275358 r275483 r276982 - Removing M_FLOWID by hps@

r275358:
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.

r275483:
Remove M_FLOWID from SCTP code.

r276982:
Remove no longer used "M_FLOWID" flag from mbuf.h and update the netisr
manpage.

Note: The FreeBSD version has been bumped.

Reviewed by:    hps, tuexen
Sponsored by:   Limelight Networks

git-svn-id: svn://svn.freebsd.org/base/stable/10@281955 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
41 files changed:
share/man/man9/netisr.9
sys/dev/bxe/bxe.c
sys/dev/cxgb/cxgb_sge.c
sys/dev/cxgbe/t4_main.c
sys/dev/cxgbe/t4_sge.c
sys/dev/e1000/if_igb.c
sys/dev/ixgbe/ixgbe.c
sys/dev/ixgbe/ixv.c
sys/dev/ixl/ixl_txrx.c
sys/dev/mxge/if_mxge.c
sys/dev/netmap/netmap_freebsd.c
sys/dev/oce/oce_if.c
sys/dev/qlxgbe/ql_isr.c
sys/dev/qlxgbe/ql_os.c
sys/dev/qlxge/qls_isr.c
sys/dev/qlxge/qls_os.c
sys/dev/sfxge/sfxge_rx.c
sys/dev/sfxge/sfxge_tx.c
sys/dev/virtio/network/if_vtnet.c
sys/dev/vmware/vmxnet3/if_vmx.c
sys/dev/vxge/vxge.c
sys/net/flowtable.c
sys/net/ieee8023ad_lacp.c
sys/net/if_lagg.c
sys/net/if_lagg.h
sys/net/netisr.c
sys/netinet/in_pcb.h
sys/netinet/ip_output.c
sys/netinet/sctp_indata.c
sys/netinet/sctp_input.c
sys/netinet/sctp_output.c
sys/netinet/sctp_pcb.c
sys/netinet/sctp_structs.h
sys/netinet/sctputil.c
sys/netinet/tcp_input.c
sys/netinet/tcp_syncache.c
sys/netinet6/sctp6_usrreq.c
sys/ofed/drivers/net/mlx4/en_rx.c
sys/ofed/drivers/net/mlx4/en_tx.c
sys/sys/mbuf.h
sys/sys/param.h