]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
net/designware: Fix the max frame length size
authorVipin KUMAR <vipin.kumar@st.com>
Mon, 26 Mar 2012 00:09:53 +0000 (00:09 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Apr 2012 15:46:51 +0000 (10:46 -0500)
The max frame length for normal descriptor can be 0x7FF i.e 2047. It was wrongly
specified as 2048. Currently, the max descriptor length is around 1500, so
redefining the mask to 1600

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
drivers/net/designware.h

index e5828a6a58194a34cddee83705ba5842dd2231c3..42133b3310d8d9a953c2dd9f598c454e75e94dfe 100644 (file)
@@ -121,7 +121,7 @@ struct eth_dma_regs {
 #define RXSTART                        (1 << 1)
 
 /* Descriptior related definitions */
-#define MAC_MAX_FRAME_SZ       (2048)
+#define MAC_MAX_FRAME_SZ       (1600)
 
 struct dmamacdescr {
        u32 txrx_status;