Re: [PATCHv2] net: mvpp2: fix dma unmapping of TX buffers for fragments

2016-12-21 Thread David Miller
From: Thomas Petazzoni Date: Wed, 21 Dec 2016 11:28:49 +0100 > Since commit 71ce391dfb784 ("net: mvpp2: enable proper per-CPU TX > buffers unmapping"), we are not correctly DMA unmapping TX buffers for > fragments. > > Indeed, the mvpp2_txq_inc_put() function only stores in the > txq_cpu->tx_buf

[PATCHv2] net: mvpp2: fix dma unmapping of TX buffers for fragments

2016-12-21 Thread Thomas Petazzoni
Since commit 71ce391dfb784 ("net: mvpp2: enable proper per-CPU TX buffers unmapping"), we are not correctly DMA unmapping TX buffers for fragments. Indeed, the mvpp2_txq_inc_put() function only stores in the txq_cpu->tx_buffs[] array the physical address of the buffer to be DMA-unmapped when skb !