From owner-freebsd-net@FreeBSD.ORG Fri Mar 13 14:22:54 2009 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85AB31065675; Fri, 13 Mar 2009 14:22:54 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (mail.farley.org [IPv6:2001:470:1f0f:20:2::11]) by mx1.freebsd.org (Postfix) with ESMTP id 4FBFC8FC1B; Fri, 13 Mar 2009 14:22:54 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (HPooka@thor.farley.org [IPv6:2001:470:1f0f:20:1::5]) by mail.farley.org (8.14.3/8.14.3) with ESMTP id n2DEMkvX023400; Fri, 13 Mar 2009 09:22:46 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Fri, 13 Mar 2009 09:22:46 -0500 (CDT) From: "Sean C. Farley" To: Rui Paulo In-Reply-To: <188BDECC-1064-4421-8687-F9759E25FD1F@freebsd.org> Message-ID: References: <188BDECC-1064-4421-8687-F9759E25FD1F@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-3.2 required=3.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.farley.org Cc: freebsd-net@FreeBSD.org Subject: Re: tap(4) SIOCSIFMTU patch X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2009 14:22:55 -0000 On Fri, 13 Mar 2009, Rui Paulo wrote: > On 13 Mar 2009, at 01:54, Sean C. Farley wrote: > >> Here is a patch[1] that will allow the MTU to be set higher than 1500 >> on a tap(4) interface. I ran into the need to do this when I had em0 >> set to 9000 and tried to bridge em0 with tap0 (MTU 1500) for QEMU. A >> bridge interface will not allow interfaces with different MTU's to be >> added to it. >> >> Since I have touched little inside the kernel, I thought it best if >> others take a look at it first. >> >> Sean >> 1. http://people.freebsd.org/~scf/if_tap-SIOCSIFMTU.patch > > This looks ok. I'm assuming bridge now works for you. Thank you for reviewing it. Yes, this fixes my issue with bridging a tap device to an interface with an MTU higher than 1500. I will probably commit this patch this weekend. Sean -- scf@FreeBSD.org