From: Vladimir Koutny <vladimir.koutny@streamunlimited.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] am335x: cpsw: optimize cpsw_recv to increase network performance
Date: Thu, 28 Nov 2013 10:38:40 +0100 [thread overview]
Message-ID: <52970F20.6070401@streamunlimited.com> (raw)
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
1.7.10.4
next reply other threads:[~2013-11-28 9:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-28 9:38 Vladimir Koutny [this message]
2013-11-28 9:55 ` [U-Boot] [PATCH] am335x: cpsw: optimize cpsw_recv to increase network performance Mugunthan V N
2013-12-04 22:05 ` [U-Boot] " Tom Rini
2013-12-12 8:34 ` Stefan Roese
2013-12-12 12:37 ` Tom Rini
2013-12-12 13:20 ` Vladimir Koutny
2013-12-12 13:24 ` Stefan Roese
2013-12-12 13:39 ` Tom Rini
2013-12-12 13:45 ` Stefan Roese
2013-12-12 13:49 ` Tom Rini
2013-12-12 13:53 ` Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52970F20.6070401@streamunlimited.com \
--to=vladimir.koutny@streamunlimited.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox