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;
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to