]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
net: calxedaxgmac: enable rx cut-thru
authorRob Herring <rob.herring@calxeda.com>
Thu, 13 Jun 2013 03:24:46 +0000 (22:24 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 25 Jul 2013 06:14:44 +0000 (08:14 +0200)
There is no reason to wait for the entire frame to start DMA on receive,
so enable rx cut-thru for better performance.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/net/calxedaxgmac.c

index e3553d68d8627a07f6b7abf4c6d3448337f19025..803687a7eff99b8cfb25f3ff88ef66735f90b19c 100644 (file)
@@ -400,7 +400,7 @@ static int xgmac_init(struct eth_device *dev, bd_t * bis)
        /* set flow control parameters and store and forward mode */
        value = (FIFO_MINUS_12K << XGMAC_CORE_OMR_RFD_SHIFT) |
                (FIFO_MINUS_4K << XGMAC_CORE_OMR_RFA_SHIFT) |
-               XGMAC_CORE_OMR_EFC | XGMAC_CORE_OMR_TSF | XGMAC_CORE_OMR_RSF;
+               XGMAC_CORE_OMR_EFC | XGMAC_CORE_OMR_TSF;
        writel(value, &regs->core_opmode);
 
        /* enable pause frames */