diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2016-12-01 20:03:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-02 21:52:00 +0300 |
commit | ac83b7ddf227d85542fc2e186884b003cfdb99f7 (patch) | |
tree | f1cba1ba1210095e73ec5c00e48331fa2d5f211d | |
parent | b5b5eca9aa4166779e184685dcd838f4d0775e76 (diff) | |
download | linux-ac83b7ddf227d85542fc2e186884b003cfdb99f7.tar.xz |
net: mvneta: Optimize rx path for small frame
For small frame reuse the phys_addr variable instead of accessing the
uncacheable value in the rx descriptor.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 0a24571e44b9..2445428bd79c 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -1918,7 +1918,7 @@ err_drop_frame: goto err_drop_frame; dma_sync_single_range_for_cpu(dev->dev.parent, - rx_desc->buf_phys_addr, + phys_addr, MVNETA_MH_SIZE + NET_SKB_PAD, rx_bytes, DMA_FROM_DEVICE); |