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 - 7: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 - 7:52 am. (1 message)
From: Ed Swierk
Date: Tuesday, September 11, 2007 - 7: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>

---
From: Rick Jones
Date: Tuesday, September 11, 2007 - 10:20 am

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

rick jones
-

From: Herbert Xu
Date: Tuesday, September 11, 2007 - 8: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
-

From: Ed Swierk
Date: Wednesday, September 12, 2007 - 9:54 am

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
From: David Miller
Date: Sunday, September 16, 2007 - 12: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.

-

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 - 7: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 - 7:52 am. (1 message)