Re: [PATCH] net: mv643xx_eth: fix packet corruption with TSO and tiny unaligned packets.

2016-01-28 Thread David Miller
From: Nicolas Schichan Date: Tue, 26 Jan 2016 16:12:35 +0100 > The code in txq_put_data() would use txq->tx_curr_desc to index the > tso_hdrs/tso_hdrs_dma buffers, for less than 8 bytes unaligned > fragments, which is already moved to the next descriptor at the > beginning of the function. > > I

Re: [PATCH] net: mv643xx_eth: fix packet corruption with TSO and tiny unaligned packets.

2016-01-28 Thread Philipp Kirchhofer
Am 26.01.2016 um 16:12 schrieb Nicolas Schichan: The code in txq_put_data() would use txq->tx_curr_desc to index the tso_hdrs/tso_hdrs_dma buffers, for less than 8 bytes unaligned fragments, which is already moved to the next descriptor at the beginning of the function. If that fragment was the

[PATCH] net: mv643xx_eth: fix packet corruption with TSO and tiny unaligned packets.

2016-01-26 Thread Nicolas Schichan
The code in txq_put_data() would use txq->tx_curr_desc to index the tso_hdrs/tso_hdrs_dma buffers, for less than 8 bytes unaligned fragments, which is already moved to the next descriptor at the beginning of the function. If that fragment was the last of the the skb, the next skb would use that sa