]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
mv643xx_eth: set sane default receive coalescing timeout
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 24 Feb 2009 15:42:05 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Feb 2009 07:17:22 +0000 (23:17 -0800)
A receive coalescing timeout of 250 usec appears to strike a good
balance between allowing enough received frames to be aggregated for
LRO to do its job and not allowing the connection to stall due to
delaying ACKs to the remote end for too long.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c

index e1a18e3540adff1fe1fcb647a17b3b2bcfbb6ef5..e1f7706c15cde6163716c371f2a97f1023ea6791 100644 (file)
@@ -2957,7 +2957,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
 
        netif_carrier_off(dev);
 
-       set_rx_coal(mp, 0);
+       set_rx_coal(mp, 250);
        set_tx_coal(mp, 0);
 
        err = register_netdev(dev);