diff mbox

[U-Boot,V2,2/8] net/designware: Fix the max frame length size

Message ID 1332756599-19304-3-git-send-email-amit.virdi@st.com
State Accepted
Delegated to: Joe Hershberger
Headers show

Commit Message

Amit Virdi March 26, 2012, 10:09 a.m. UTC
From: Vipin KUMAR <vipin.kumar@st.com>

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Joe Hershberger April 4, 2012, 5:34 p.m. UTC | #1
On Mon, Mar 26, 2012 at 5:09 AM, Amit Virdi <amit.virdi@st.com> wrote:
> From: Vipin KUMAR <vipin.kumar@st.com>
>
> 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>

Applied.

Thanks,
-Joe
diff mbox

Patch

diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index e5828a6..42133b3 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -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;