Patchwork [U-Boot,v2,02/10] net: calxedaxgmac: enable rx cut-thru

login
register
mail settings
Submitter Rob Herring
Date June 13, 2013, 3:24 a.m.
Message ID <1371093894-16424-2-git-send-email-robherring2@gmail.com>
Download mbox | patch
Permalink /patch/250963/
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Comments

Rob Herring - June 13, 2013, 3:24 a.m.
From: Rob Herring <rob.herring@calxeda.com>

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>
---
v2: no change, resend

 drivers/net/calxedaxgmac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c
index e3553d6..803687a 100644
--- a/drivers/net/calxedaxgmac.c
+++ b/drivers/net/calxedaxgmac.c
@@ -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 */