From owner-freebsd-net@FreeBSD.ORG Mon Sep 10 17:52:58 2007 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 5BC8816A421 for ; Mon, 10 Sep 2007 17:52:58 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outU.internet-mail-service.net (outU.internet-mail-service.net [216.240.47.244]) by mx1.freebsd.org (Postfix) with ESMTP id 27C5313C469 for ; Mon, 10 Sep 2007 17:52:58 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Mon, 10 Sep 2007 10:52:57 -0700 Received: from julian-mac.elischer.org (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id 0009612631F; Mon, 10 Sep 2007 10:52:56 -0700 (PDT) Message-ID: <46E58478.3070009@elischer.org> Date: Mon, 10 Sep 2007 10:52:56 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Ivan Alexandrovich References: In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: nested vlans and ethernet frame size 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: Mon, 10 Sep 2007 17:52:58 -0000 Ivan Alexandrovich wrote: > Hi > > I'd like to ask for advice - what is the right place for > setting maximum ethernet frame size in freebsd? > It needs 1526 bytes to allow two vlan tags per packet. > Those tags must be processed by ng_vlan code so > it seems that vlanmtu interface flag will be of no use here. > We're running freebsd6.2-stable and use some Intel pro 100 > card for testing purposes along with QinQ-capable switch. > > Currently frames of 1526 length are sent without problems but > incoming packets of such a size are lost. Since fxp driver > complains about 'discarding oversize frame' it can be supposed that > the problem in this case is not in nic hardware but in > driver. > > As far as I can see in kernel sources (it's a pity I'm not a > programmer :) many ethernet drivers use ETHERNET_MAX_FRAME macro > to define size checks. > Possibly I could replace "1518" by "1526" in sys/net/ethernet.h > but it must be considered brutal, isn't it ? :) basically you need go add smaller and smaller MTUs on your vlann interfaces as they get more and more nested. You can't really go in the other direction of increasing them in a lot of scenarios. > > > Thanks in advance, > Ivan > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"