From owner-freebsd-questions@FreeBSD.ORG Thu Sep 16 20:39:39 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD6961065696 for ; Thu, 16 Sep 2010 20:39:39 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail3.networktest.com (mail3.networktest.com [69.55.234.104]) by mx1.freebsd.org (Postfix) with ESMTP id BEB298FC16 for ; Thu, 16 Sep 2010 20:39:39 +0000 (UTC) Received: from localhost (localhost [69.55.234.104]) by mail3.networktest.com (Postfix) with ESMTP id 37F2911F8FF for ; Thu, 16 Sep 2010 13:39:39 -0700 (PDT) Received: from mail3.networktest.com ([69.55.234.104]) by localhost (mail3.networktest.com [69.55.234.104]) (amavisd-maia, port 10024) with ESMTP id 19294-03 for ; Thu, 16 Sep 2010 13:39:39 -0700 (PDT) Received: from dhcp207.eng.networktest.com (ns.networktest.com [216.240.60.130]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail3.networktest.com (Postfix) with ESMTPSA id 03B9211F8CE for ; Thu, 16 Sep 2010 13:39:38 -0700 (PDT) Message-ID: <4C92808A.2090902@networktest.com> Date: Thu, 16 Sep 2010 13:39:38 -0700 From: David Newman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100825 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C902D28.2040206@networktest.com> <4C9145EB.90900@networktest.com> In-Reply-To: <4C9145EB.90900@networktest.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: jumbo frame support in bge(4) for BCM5704 SOLVED X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2010 20:39:39 -0000 On 9/15/10 3:17 PM, David Newman wrote: > On 9/14/10 7:43 PM, Adam Vande More wrote: >> On Tue, Sep 14, 2010 at 9:19 PM, David Newman wrote: >> >>> 8.0-RELEASE amd64, Tyan S2882-D motherboard, Broadcom BCM5704C gigabit >>> Ethernet transceivers >>> >>> Thanks in advance for any clues on enabling jumbos on this system. >>> >> >> What happens if you boot from a linux live cd and try to enable frames >> there? > > With Ubuntu 10.04, the system accepts "ifconfig eth1 mtu N" for any > value of N up to 9000, and shows an MTU of N in response to 'ifconfig'. > > With 8.1-RELEASE (not 8.0 as stated before, sorry), the command > 'ifconfig bge0 mtu 8000' produces an error: > > ifconfig: ioctl (set mtu): Invalid argument > > Same thing with 'mtu 1500', 'mtu 1400', etc. I neglected to mention that this system uses link aggregation on the bge interfaces. Once a lagg interface exists, an MTU cannot be applied to either the bge or lagg instances. However, everything works fine if MTUs are applied to bge interfaces before bringing up the lagg interface: ifconfig_bge0="mtu 9000 up" ifconfig_bge1="mtu 9000 up" cloned_interfaces="lagg0" ifconfig_lagg0="laggproto lacp laggport bge0 laggport bge1" ipv4_addrs_lagg0="10.0.0.1/24" # ifconfig lagg0 | grep mtu lagg0: flags=8843 metric 0 mtu 9000 One other thing: The maximum value for the BCM5704's mtu is 9000 bytes, not the more widely used 9216 for jumbo frames. This may reflect a hardware limit for this controller. Many thanks to FreeBSD bge(4) maintainer Pyun YongHyeon for contacting me and spotting my configuration error with the lagg setup. dn