]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: do not unmap TSO headers buffers
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 23 Oct 2017 13:24:30 +0000 (15:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 09:34:09 +0000 (18:34 +0900)
commitef21d6abd3a254e5c5af5bec6a0c5a448dd5d707
treea403563fb4e08b177fd2f8564d7a84e6f171d512
parent00751c84cc76d28abee2888ac088849d919aff95
net: mvpp2: do not unmap TSO headers buffers

The TSO header buffers are coming from a per cpu pool and should not
be unmapped as they are reused. The PPv2 driver was unmapping all
descriptors buffers unconditionally. This patch fixes this by checking
the buffers dma addresses before unmapping them, and by not unmapping
those who are located in the TSO header pool.

Fixes: 6c577f0b5917 ("net: mvpp2: software tso support")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c