svn commit: r278511 - stable/10/sys/netinet
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Feb 10 13:29:45 UTC 2015
Author: hselasky
Date: Tue Feb 10 13:29:44 2015
New Revision: 278511
URL: https://svnweb.freebsd.org/changeset/base/278511
Log:
MFC r278103:
The flowid and hashtype should be copied from the originating packet
when fragmenting IP packets to preserve the order of the packets in a
stream. Else the resulting fragments can be sent out of order when the
hardware supports multiple transmit rings.
Sponsored by: Mellanox Technologies
Modified:
stable/10/sys/netinet/ip_output.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/ip_output.c
==============================================================================
--- stable/10/sys/netinet/ip_output.c Tue Feb 10 13:25:29 2015 (r278510)
+++ stable/10/sys/netinet/ip_output.c Tue Feb 10 13:29:44 2015 (r278511)
@@ -798,6 +798,10 @@ smart_frag_failure:
IPSTAT_INC(ips_odropped);
goto done;
}
+ /* make sure the flowid is the same for the fragmented mbufs */
+ M_HASHTYPE_SET(m, M_HASHTYPE_GET(m0));
+ m->m_pkthdr.flowid = m0->m_pkthdr.flowid;
+ /* copy multicast flag, if any */
m->m_flags |= (m0->m_flags & M_MCAST);
/*
* In the first mbuf, leave room for the link header, then
More information about the svn-src-stable-10
mailing list