Author: arybchik Date: Sun Mar 29 15:18:04 2015 New Revision: 280807 URL: https://svnweb.freebsd.org/changeset/base/280807
Log: sfxge: fix bug in TSO when a DMA segment has both header and data Reviewed by: gnn Sponsored by: Solarflare Communications, Inc. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D2163 Modified: head/sys/dev/sfxge/sfxge_tx.c Modified: head/sys/dev/sfxge/sfxge_tx.c ============================================================================== --- head/sys/dev/sfxge/sfxge_tx.c Sun Mar 29 12:00:51 2015 (r280806) +++ head/sys/dev/sfxge/sfxge_tx.c Sun Mar 29 15:18:04 2015 (r280807) @@ -1025,7 +1025,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; _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
