Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1532375
| From | Gregory CLEMENT <gregory.clement@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 net-next 1/7] net: mvneta: Optimize rx path for small frame |
| Date | 2016-11-29 16:00 +0100 |
| Message-ID | <sIS31-1lb-51@gated-at.bofh.it> (permalink) |
| References | <sIS2Z-1lb-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- drivers/net/ethernet/marvell/mvneta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 87274d4ab102..1b84f746d748 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -1918,7 +1918,7 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo, 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); -- git-series 0.8.10
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 net-next 0/7] Support Armada 37xx SoC (ARMv8 64-bits) in mvneta driver Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-29 16:00 +0100
[PATCH v4 net-next 6/7] net: mvneta: Add network support for Armada 3700 SoC Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-29 16:00 +0100
[PATCH v4 net-next 5/7] net: mvneta: Only disable mvneta_bm for 64-bits Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-29 16:00 +0100
[PATCH v4 net-next 3/7] net: mvneta: Use cacheable memory to store the rx buffer virtual address Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-29 16:00 +0100
Re: [PATCH v4 net-next 3/7] net: mvneta: Use cacheable memory to store the rx buffer virtual address David Miller <davem@davemloft.net> - 2016-11-30 20:00 +0100
Re: [PATCH v4 net-next 3/7] net: mvneta: Use cacheable memory to store the rx buffer virtual address Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-30 22:30 +0100
[PATCH v4 net-next 7/7] ARM64: dts: marvell: Add network support for Armada 3700 Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-29 16:00 +0100
[PATCH v4 net-next 1/7] net: mvneta: Optimize rx path for small frame Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-29 16:00 +0100
csiph-web