diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2016-12-01 18:03:04 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-02 13:52:00 -0500 |
commit | ac83b7ddf227d85542fc2e186884b003cfdb99f7 (patch) | |
tree | f1cba1ba1210095e73ec5c00e48331fa2d5f211d /drivers/net/ethernet/marvell | |
parent | b5b5eca9aa4166779e184685dcd838f4d0775e76 (diff) | |
download | op-kernel-dev-ac83b7ddf227d85542fc2e186884b003cfdb99f7.zip op-kernel-dev-ac83b7ddf227d85542fc2e186884b003cfdb99f7.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-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 0a24571..2445428 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); |