From owner-svn-src-head@freebsd.org Tue Apr 11 19:05:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20435D3A09E; Tue, 11 Apr 2017 19:05:23 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5CE9B5; Tue, 11 Apr 2017 19:05:22 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1cy16I-000NuO-1A; Tue, 11 Apr 2017 22:05:14 +0300 Date: Tue, 11 Apr 2017 22:05:13 +0300 From: Slawa Olhovchenkov To: rgrimes@freebsd.org Cc: "Andrey V. Elsukov" , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r316699 - head/sys/net Message-ID: <20170411190513.GE20974@zxy.spb.ru> References: <201704111849.v3BInuuB075892@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201704111849.v3BInuuB075892@pdx.rh.CN85.dnsmgr.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2017 19:05:23 -0000 On Tue, Apr 11, 2017 at 11:49:56AM -0700, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] > > On 11.04.2017 19:51, Rodney W. Grimes wrote: > > >> Modified: head/sys/net/if_gre.c > > >> ============================================================================== > > >> --- head/sys/net/if_gre.c Tue Apr 11 08:29:12 2017 (r316698) > > >> +++ head/sys/net/if_gre.c Tue Apr 11 08:56:18 2017 (r316699) > > >> @@ -88,7 +88,7 @@ __FBSDID("$FreeBSD$"); > > >> #include > > >> #include > > >> > > >> -#define GREMTU 1500 > > >> +#define GREMTU 1476 > > > > > > I would of thought that this was > > > #define GREMTU ETHERMTU > > > and now should probably be: > > > #define GREMTU ETHERMTU - gre_hlen; > > > Or what ever the approprite sizeof(foo) is; > > > > I just returned back constants that were here :) > > Can we try to improve on this, or maybe just ignore it? > > > The man page says: > > "The MTU of gre interfaces is set to 1476 by default, to match the > > value used by Cisco routers." > > That might need some clean up too? > > > > Isn't this arguably wrong in the face of JumboFrames? > > > > > > > I don't see why it may be wrong for jumbo frames. The default MTU value > > used by any interfaces is ETHERMTU, if you know that your NIC supports > > jumbo frames, you will configure specific MTU value. > > If you want 9k MTU on gre(4), you should configure it. > > I may some day want to #define ETHERMTU 9000 and just have all the right > magic happen, wouldnt that be nice? Not before 2038.