svn commit: r206844 - head/sys/netinet

Kenneth D. Merry ken at FreeBSD.org
Mon Apr 19 15:15:36 UTC 2010


Author: ken
Date: Mon Apr 19 15:15:36 2010
New Revision: 206844
URL: http://svn.freebsd.org/changeset/base/206844

Log:
  Don't clear other flags (e.g. CSUM_TCP) when setting CSUM_TSO.  This was
  causing TSO to break for the Xen netfront driver.
  
  Reviewed by:	gibbs, rwatson
  MFC after:	7 days

Modified:
  head/sys/netinet/tcp_output.c

Modified: head/sys/netinet/tcp_output.c
==============================================================================
--- head/sys/netinet/tcp_output.c	Mon Apr 19 15:11:45 2010	(r206843)
+++ head/sys/netinet/tcp_output.c	Mon Apr 19 15:15:36 2010	(r206844)
@@ -1048,7 +1048,7 @@ send:
 	 * XXX: Fixme: This is currently not the case for IPv6.
 	 */
 	if (tso) {
-		m->m_pkthdr.csum_flags = CSUM_TSO;
+		m->m_pkthdr.csum_flags |= CSUM_TSO;
 		m->m_pkthdr.tso_segsz = tp->t_maxopd - optlen;
 	}
 


More information about the svn-src-all mailing list