Skip to content
Snippets Groups Projects
Commit 74007b85 authored by Vladimir Koutny's avatar Vladimir Koutny Committed by Tom Rini
Browse files

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: default avatarVladimir 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>
parent 675cc77a
No related branches found
No related tags found
No related merge requests found
...@@ -914,7 +914,7 @@ static int cpsw_recv(struct eth_device *dev) ...@@ -914,7 +914,7 @@ static int cpsw_recv(struct eth_device *dev)
void *buffer; void *buffer;
int len; int len;
cpsw_update_link(priv); cpsw_check_link(priv);
while (cpdma_process(priv, &priv->rx_chan, &buffer, &len) >= 0) { while (cpdma_process(priv, &priv->rx_chan, &buffer, &len) >= 0) {
invalidate_dcache_range((unsigned long)buffer, invalidate_dcache_range((unsigned long)buffer,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment