linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] drivers/net/tg3.c: Raise Jumbo Frame MTU to 9216?
@ 2010-09-15 17:41 Joe Perches
  2010-09-15 17:57 ` Michael Chan
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Perches @ 2010-09-15 17:41 UTC (permalink / raw)
  To: Matt Carlson, Michael Chan, Benjamin Li; +Cc: David S. Miller, netdev, LKML

The TG3 apparently supports 9K frame sizes.

http://www.broadcom.com/collateral/pb/5704C-PB05-R.pdf

Is exactly 9000 a hardware limit?

Should the jumbo frame MTU be raised to 9216 or 9216
less the size of MAC, VLAN, IP and TCP headers?

diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 9f6ffff..3727070 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -95,7 +95,7 @@
 /* hardware minimum and maximum for a single frame's data payload */
 #define TG3_MIN_MTU			60
 #define TG3_MAX_MTU(tp)	\
-	((tp->tg3_flags & TG3_FLAG_JUMBO_CAPABLE) ? 9000 : 1500)
+	((tp->tg3_flags & TG3_FLAG_JUMBO_CAPABLE) ? 9216 : 1500)
 
 /* These numbers seem to be hard coded in the NIC firmware somehow.
  * You can't change the ring sizes, but you can change where you place



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

end of thread, other threads:[~2010-09-15 19:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15 17:41 [RFC PATCH] drivers/net/tg3.c: Raise Jumbo Frame MTU to 9216? Joe Perches
2010-09-15 17:57 ` Michael Chan
2010-09-15 19:14   ` Joe Perches
2010-09-15 19:31     ` Ben Hutchings
2010-09-15 19:45     ` David Newman

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).