netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ucc_geth: Add 8 bytes to max TX frame for VLANs
@ 2008-09-16  0:24 Andy Fleming
  2008-11-02 13:18 ` Jeff Garzik
  0 siblings, 1 reply; 12+ messages in thread
From: Andy Fleming @ 2008-09-16  0:24 UTC (permalink / raw)
  To: jeff; +Cc: netdev, Joakim Tjernlund

From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>

Creating a VLAN interface on top of ucc_geth adds 4 bytes
to the frame and the HW controller is not prepared to
TX a frame bigger than 1518 bytes which is 4 bytes too
small for a full VLAN frame. Also add 4 extra bytes for future
expansion.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 drivers/net/ucc_geth.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 8f944e5..8fed4bb 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -113,10 +113,10 @@ static struct ucc_geth_info ugeth_primary_info = {
 	.maxGroupAddrInHash = 4,
 	.maxIndAddrInHash = 4,
 	.prel = 7,
-	.maxFrameLength = 1518,
+	.maxFrameLength = 1518+8, /* Add 4 bytes for VLAN tags and 4 extra bytes */
 	.minFrameLength = 64,
-	.maxD1Length = 1520,
-	.maxD2Length = 1520,
+	.maxD1Length = 1520+8,
+	.maxD2Length = 1520+8,
 	.vlantype = 0x8100,
 	.ecamptr = ((uint32_t) NULL),
 	.eventRegMask = UCCE_OTHER,
-- 
1.5.4.GIT


^ permalink raw reply related	[flat|nested] 12+ messages in thread
* [PATCH] ucc_geth: Add 8 bytes to max TX frame for VLANs
@ 2008-03-18 15:11 Joakim Tjernlund
  2008-03-19 21:56 ` Benny Amorsen
  2008-03-21 12:20 ` Li Yang
  0 siblings, 2 replies; 12+ messages in thread
From: Joakim Tjernlund @ 2008-03-18 15:11 UTC (permalink / raw)
  To: Netdev, Li Yang; +Cc: Joakim Tjernlund

Creating a VLAN interface on top of ucc_geth adds 4 bytes
to the frame and the HW controller is not prepared to
TX a frame bigger than 1518 bytes which is 4 bytes too
small for a full VLAN frame. Also add 4 extra bytes for future
expansion.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 drivers/net/ucc_geth.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 348892b..038ec75 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -114,10 +114,10 @@ static struct ucc_geth_info ugeth_primary_info = {
 	.maxGroupAddrInHash = 4,
 	.maxIndAddrInHash = 4,
 	.prel = 7,
-	.maxFrameLength = 1518,
+	.maxFrameLength = 1518+8, /* Add 4 bytes for VLAN tags and 4 extra bytes */
 	.minFrameLength = 64,
-	.maxD1Length = 1520,
-	.maxD2Length = 1520,
+	.maxD1Length = 1520+8,
+	.maxD2Length = 1520+8,
 	.vlantype = 0x8100,
 	.ecamptr = ((uint32_t) NULL),
 	.eventRegMask = UCCE_OTHER,
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-11-11 21:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16  0:24 [PATCH] ucc_geth: Add 8 bytes to max TX frame for VLANs Andy Fleming
2008-11-02 13:18 ` Jeff Garzik
2008-11-07 10:18   ` Joakim Tjernlund
2008-11-11 21:40     ` Andy Fleming
  -- strict thread matches above, loose matches on Subject: below --
2008-03-18 15:11 Joakim Tjernlund
2008-03-19 21:56 ` Benny Amorsen
2008-03-21 12:20 ` Li Yang
2008-03-22 11:51   ` Joakim Tjernlund
2008-03-25  9:17     ` Joakim Tjernlund
2008-03-26 12:43       ` Li Yang
2008-03-27 12:43         ` Joakim Tjernlund
2008-03-28  2:54           ` Li Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).