summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Koutny <vladimir.koutny@streamunlimited.com>2013-11-28 10:38:40 +0100
committerTom Rini <trini@ti.com>2013-12-04 11:41:13 -0500
commit74007b8519f4cfb4aa0f0af397ca71dde04172bf (patch)
tree5968f5544bd2b609213dc83c2d96cc33e8238810
parent675cc77a3ae45e8b0ec17128563264d4a509f628 (diff)
downloadu-boot-imx-74007b8519f4cfb4aa0f0af397ca71dde04172bf.zip
u-boot-imx-74007b8519f4cfb4aa0f0af397ca71dde04172bf.tar.gz
u-boot-imx-74007b8519f4cfb4aa0f0af397ca71dde04172bf.tar.bz2
am335x: cpsw: optimize cpsw_recv to increase network performance
In 48ec5291, only TX path was optimized; this does the same also for RX path. This results in huge increase of TFTP throughput on custom am3352 board (from 312KiB/s to 1.8MiB/s) and eliminates occasional transfer timeouts. Signed-off-by: Vladimir Koutny <vladimir.koutny@streamunlimited.com> Cc: Mugunthan V N <mugunthanvnm@ti.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Tom Rini <trini@ti.com>
-rw-r--r--drivers/net/cpsw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index 39240d9..50167aa 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -914,7 +914,7 @@ static int cpsw_recv(struct eth_device *dev)
void *buffer;
int len;
- cpsw_update_link(priv);
+ cpsw_check_link(priv);
while (cpdma_process(priv, &priv->rx_chan, &buffer, &len) >= 0) {
invalidate_dcache_range((unsigned long)buffer,