opensubscriber
   Find in this group all groups
 
Unknown more information…

k : kernel-team@lists.ubuntu.com 27 June 2012 • 8:49PM -0400

[PATCH 4/9] UBUNTU: SAUCE: net: calxedaxgmac: enable rx cut-thru mode
by Ike Panhc

REPLY TO AUTHOR
 
REPLY TO GROUP




From: Rob Herring <rob.herring@calx...>

BugLink: http://launchpad.net/bugs/1008345

Enabling RX cut-thru mode yields better performance as received frames
start getting written to memory before a whole frame is received.

Signed-off-by: Rob Herring <rob.herring@calx...>
Signed-off-by: Ike Panhc <ike.pan@cano...>
---
drivers/net/ethernet/calxeda/xgmac.c |    5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/calxeda/xgmac.c b/drivers/net/ethernet/calxeda/xgmac.c
index ee309e6..fde5323 100644
--- a/drivers/net/ethernet/calxeda/xgmac.c
+++ b/drivers/net/ethernet/calxeda/xgmac.c
@@ -264,7 +264,7 @@
#define XGMAC_OMR_FEF 0x00000080 /* Forward Error Frames */
#define XGMAC_OMR_DT 0x00000040 /* Drop TCP/IP csum Errors */
#define XGMAC_OMR_RSF 0x00000020 /* RX FIFO Store and Forward */
-#define XGMAC_OMR_RTC 0x00000010 /* RX Threshhold Ctrl */
+#define XGMAC_OMR_RTC_256 0x00000018 /* RX Threshhold Ctrl */
#define XGMAC_OMR_RTC_MASK 0x00000018 /* RX Threshhold Ctrl MASK */

/* XGMAC HW Features Register */
@@ -985,7 +985,8 @@ static int xgmac_hw_init(struct net_device *dev)
writel(value, ioaddr + XGMAC_DMA_CONTROL);

/* Set the HW DMA mode and the COE */
- writel(XGMAC_OMR_TSF | XGMAC_OMR_RSF | XGMAC_OMR_RFD | XGMAC_OMR_RFA,
+ writel(XGMAC_OMR_TSF | XGMAC_OMR_RFD | XGMAC_OMR_RFA |
+ XGMAC_OMR_RTC_256,
ioaddr + XGMAC_OMR);

/* Reset the MMC counters */
--
1.7.9.5


--
kernel-team mailing list
kernel-team@list...
https://lists.ubuntu.com/mailman/listinfo/kernel-team

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.