]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
am335x: cpsw: optimize cpsw_recv to increase network performance
authorVladimir Koutny <vladimir.koutny@streamunlimited.com>
Thu, 28 Nov 2013 09:38:40 +0000 (10:38 +0100)
committerTom Rini <trini@ti.com>
Wed, 4 Dec 2013 16:41:13 +0000 (11:41 -0500)
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>
drivers/net/cpsw.c

index 39240d9662143e2c33a1e90f6309e9ab83e61666..50167aab63a8a2a43725c2567936ab06b3b19109 100644 (file)
@@ -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,