Re: [PATCH] Configurable tap interface MTU

Previous thread: build #286 failed for 2.6.23-rc6-g0d4cbb5 in linux/arch/i386/mach-voyager/setup.c by Toralf on Tuesday, September 11, 2007 - 10:21 am. (3 messages)

Next thread: [ PATCH 0/3 ] UML - Three trivial patches for 2.6.24 by Jeff Dike on Tuesday, September 11, 2007 - 10:52 am. (1 message)
To: <netdev@...>, <maxk@...>
Cc: <linux-kernel@...>
Date: Tuesday, September 11, 2007 - 10:42 am

This patch makes it possible to change the MTU on a tap interface.
Increasing the MTU beyond the 1500-byte default is useful for
applications that interoperate with Ethernet devices supporting jumbo
frames.

The patch caps the MTU somewhat arbitrarily at 16000 bytes. This is
slightly lower than the value used by the e1000 driver, so it seems
like a safe upper limit.

Signed-off-by: Ed Swierk <eswierk@arastra.com>

---

To: Ed Swierk <eswierk@...>
Cc: <netdev@...>, <maxk@...>, <linux-kernel@...>
Date: Tuesday, September 11, 2007 - 11:29 pm

Please make it 65535 without an Ethernet header and 65521
with an Ethernet header.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-

To: Herbert Xu <herbert@...>, <netdev@...>, <maxk@...>, <linux-kernel@...>
Date: Wednesday, September 12, 2007 - 12:54 pm

Here is a revised patch that allows MTUs up to 65535 for tap
interfaces and up to 65521 for tun interfaces.

(If I set the MTU to 65521 on a tun interface, ping complains "message
too long" when I send a 65521-byte packet; 65520 works okay, though.)

--Ed

To: <eswierk@...>
Cc: <herbert@...>, <netdev@...>, <maxk@...>, <linux-kernel@...>
Date: Sunday, September 16, 2007 - 3:22 pm

From: "Ed Swierk" <eswierk@arastra.com>

Applied to net-2.6.24

Please provide a proper Signed-off-by: line and a full
changelog with every patch submission and revision in
the future.

Thanks.

-

To: Ed Swierk <eswierk@...>
Cc: <netdev@...>, <maxk@...>, <linux-kernel@...>
Date: Tuesday, September 11, 2007 - 1:20 pm

FWIW the OFED 1.2 bits take the MTU of IPoIB up to 65520 bytes :)

rick jones
-

Previous thread: build #286 failed for 2.6.23-rc6-g0d4cbb5 in linux/arch/i386/mach-voyager/setup.c by Toralf on Tuesday, September 11, 2007 - 10:21 am. (3 messages)

Next thread: [ PATCH 0/3 ] UML - Three trivial patches for 2.6.24 by Jeff Dike on Tuesday, September 11, 2007 - 10:52 am. (1 message)