Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2010 15:15:36 +0000 (UTC)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206844 - head/sys/netinet
Message-ID:  <201004191515.o3JFFapS037276@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004191515.o3JFFapS037276>