Commit ac83b7dd authored by Gregory CLEMENT's avatar Gregory CLEMENT Committed by David S. Miller

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: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: default avatarMarcin Wojtas <mw@semihalf.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b5b5eca9
...@@ -1918,7 +1918,7 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo, ...@@ -1918,7 +1918,7 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo,
goto err_drop_frame; goto err_drop_frame;
dma_sync_single_range_for_cpu(dev->dev.parent, dma_sync_single_range_for_cpu(dev->dev.parent,
rx_desc->buf_phys_addr, phys_addr,
MVNETA_MH_SIZE + NET_SKB_PAD, MVNETA_MH_SIZE + NET_SKB_PAD,
rx_bytes, rx_bytes,
DMA_FROM_DEVICE); DMA_FROM_DEVICE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment