Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 08:05:30 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r280901 - stable/10/sys/dev/sfxge
Message-ID:  <201503310805.t2V85UWX040589@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Tue Mar 31 08:05:29 2015
New Revision: 280901
URL: https://svnweb.freebsd.org/changeset/base/280901

Log:
  MFC: r280807
  
  sfxge: fix bug in TSO when a DMA segment has both header and data
  
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/sfxge_tx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/sfxge_tx.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_tx.c	Tue Mar 31 08:00:20 2015	(r280900)
+++ stable/10/sys/dev/sfxge/sfxge_tx.c	Tue Mar 31 08:05:29 2015	(r280901)
@@ -1024,7 +1024,7 @@ sfxge_tx_queue_tso(struct sfxge_txq *txq
 		KASSERT(n_dma_seg, ("no payload found in TSO packet"));
 		++dma_seg;
 	}
-	tso.in_len = dma_seg->ds_len + (tso.header_len - skipped);
+	tso.in_len = dma_seg->ds_len - (tso.header_len - skipped);
 	tso.dma_addr = dma_seg->ds_addr + (tso.header_len - skipped);
 
 	id = txq->added & txq->ptr_mask;



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