From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 7 05:42:16 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F045EE5 for ; Sat, 7 Feb 2015 05:42:16 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0058.outbound.protection.outlook.com [157.56.110.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3FD89E0 for ; Sat, 7 Feb 2015 05:42:14 +0000 (UTC) Received: from DM2PR0801MB0943.namprd08.prod.outlook.com (25.160.131.26) by DM2PR0801MB667.namprd08.prod.outlook.com (10.242.173.25) with Microsoft SMTP Server (TLS) id 15.1.75.20; Sat, 7 Feb 2015 05:26:39 +0000 Received: from DM2PR0801MB0944.namprd08.prod.outlook.com (25.160.131.27) by DM2PR0801MB0943.namprd08.prod.outlook.com (25.160.131.26) with Microsoft SMTP Server (TLS) id 15.1.75.20; Sat, 7 Feb 2015 05:26:37 +0000 Received: from DM2PR0801MB0944.namprd08.prod.outlook.com ([25.160.131.27]) by DM2PR0801MB0944.namprd08.prod.outlook.com ([25.160.131.27]) with mapi id 15.01.0075.002; Sat, 7 Feb 2015 05:26:38 +0000 From: "Pokala, Ravi" To: John-Mark Gurney Subject: Re: Changing the MTU on a lagg device Thread-Topic: Changing the MTU on a lagg device Thread-Index: AQHQQn+0qPs6AFh2xkSO1q7r/b61upzko7MA//9+dwA= Date: Sat, 7 Feb 2015 05:26:36 +0000 Message-ID: References: <20150207051012.GH58410@funkthat.com> In-Reply-To: <20150207051012.GH58410@funkthat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.7.141117 x-originating-ip: [64.80.217.3] authentication-results: funkthat.com; dkim=none (message not signed) header.d=none; x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB0943;UriScan:; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:; SRVR:DM2PR0801MB0943; x-forefront-prvs: 0480A51D4A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(51704005)(46034005)(377424004)(110136001)(50986999)(122556002)(2656002)(99286002)(40100003)(87936001)(76176999)(19580405001)(106116001)(54356999)(86362001)(19580395003)(62966003)(83506001)(36756003)(102836002)(66066001)(77156002)(2900100001)(2950100001)(46102003)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0801MB0943; H:DM2PR0801MB0944.namprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-ID: <7CB82C719097DA48BFA4B0C1CD4E4686@namprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2015 05:26:36.9929 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: acf01c9d-c699-42af-bdbb-44bf582e60b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0801MB0943 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB667; X-OriginatorOrg: panasas.com Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2015 05:42:16 -0000 > So, to do it, you'd need to try to change all the ports mtu, and if any of them fail, you need to revert all of them back to the original mtu... Which is exactly what our code does. :-) Right now, I only have the change against our older base FreeBSD; I'll port it to -CURRENT and send out a patch when I have a few minutes sometime this weekend. -Ravi -----Original Message----- From: John-Mark Gurney Date: 2015-02-06, Friday at 21:10 To: Ravi Pokala Cc: "freebsd-hackers@freebsd.org" Subject: Re: Changing the MTU on a lagg device >Ravi Pokala wrote this message on Sat, Feb 07, 2015 at 02:42 +0000: >> Hi folks, >>=20 >> Let's say you have lagg0, consisting of if0 and if1. If you want to >>change >> the MTU, you have to remove if0 and if1 from the lagg, change their >>MTUs, >> and add them back; that is: >>=20 >> 1) ifconfig lagg0 -laggport if0 >> 2) ifconfig lagg0 -laggport if1 >> 3) ifconfig if0 mtu 9000 >> 4) ifconfig if1 mtu 9000 >> 5) ifconfig lagg0 laggport if0 >> 6) ifconfig lagg0 laggport if1 >>=20 >> It would be nice if this could be done with a single command: >>=20 >> 1) ifconfig lagg0 mtu 9000 >>=20 >> Panasas implemented that functionality for our older base FreeBSD, and >> we're looking to port it forward and push it upstream. However, it looks >> like someone thought about this case and explicitly decided not to do >>it; >> if_lagg.c has: >>=20 >> case SIOCSIFMTU: >> /* Do not allow the MTU to be changed once joined */ >> error =3D EINVAL; >> break; >>=20 >>=20 >> Does anyone know why that is? Would anyone object to a patch that lets >>you >> change the MTU on the lagg device, and having the lagg driver change it >>on >> all the component interfaces for you? > >If could be trying to deal w/ the issue if you ask for 16000 but one >can do it, but the other can only handle 9000, how do you handle it? > >Just for fun, I just tried something similar.. lagg won't allow you >to add a port that has a different (smaller or bigger) MTU than the >first one added.. > >So, to do it, you'd need to try to change all the ports mtu, and if >any of them fail, you need to revert all of them back to the original >mtu... > >--=20 > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not."