From owner-freebsd-net@FreeBSD.ORG Thu Jul 12 18:26:10 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA7BC106566B; Thu, 12 Jul 2012 18:26:10 +0000 (UTC) (envelope-from aboyer@averesystems.com) Received: from mail.averesystems.com (50-73-27-109-cpennsylvania.hfc.comcastbusiness.net [50.73.27.109]) by mx1.freebsd.org (Postfix) with ESMTP id B4CBC8FC08; Thu, 12 Jul 2012 18:26:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.averesystems.com (Postfix) with ESMTP id F32B848067A; Thu, 12 Jul 2012 14:26:13 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.averesystems.com Received: from mail.averesystems.com ([127.0.0.1]) by localhost (mail.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h1Qj8uHikfVI; Thu, 12 Jul 2012 14:26:13 -0400 (EDT) Received: from riven.arriad.com (206.193.225.214.nauticom.net [206.193.225.214]) by mail.averesystems.com (Postfix) with ESMTPSA id 0268148028B; Thu, 12 Jul 2012 14:26:12 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Andrew Boyer In-Reply-To: <20120712165502.GA61341@DataIX.net> Date: Thu, 12 Jul 2012 14:26:08 -0400 Content-Transfer-Encoding: 7bit Message-Id: <1AD62103-2ABF-4F07-B9EE-AD3EBF7024D5@averesystems.com> References: <86liiqrnnq.wl%gnn@neville-neil.com> <4FFDF6C7.3030301@FreeBSD.org> <20120712165502.GA61341@DataIX.net> To: Jason Hellenthal X-Mailer: Apple Mail (2.1278) Cc: George Neville-Neil , Navdeep Parhar , net@freebsd.org Subject: Re: Interface MTU question... 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: Thu, 12 Jul 2012 18:26:11 -0000 On Jul 12, 2012, at 12:55 PM, Jason Hellenthal wrote: > Something else to look into ... > > # ifconfig lagg0 mtu 1492 > ifconfig: ioctl (set mtu): Invalid argument > > This is on stable/8 r238264 when the interface was up/up and down/down > > Also attempted on the member interfaces dc0 and dc1 It's disabled by default, but I don't know why. This seems to work for us. -Andrew Index: sys/net/if_lagg.c =================================================================== --- sys/net/if_lagg.c (revision 238402) +++ sys/net/if_lagg.c (working copy) @@ -752,8 +752,18 @@ break; case SIOCSIFMTU: - /* Do not allow the MTU to be changed once joined */ - error = EINVAL; + LAGG_WLOCK(sc); + SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) { + if (!error) { + /* Call the base ioctl for each port */ + error = (*lp->lp_ioctl)(lp->lp_ifp, cmd, data); + } + } + if (!error) { + /* Update the aggregate MTU */ + sc->sc_ifp->if_mtu = ifr->ifr_mtu; + } + LAGG_WUNLOCK(sc); break; default: -------------------------------------------------- Andrew Boyer aboyer@averesystems.com