From owner-svn-src-all@FreeBSD.ORG Mon May 4 05:15:18 2015 Return-Path: Delivered-To: svn-src-all@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 8B7966C; Mon, 4 May 2015 05:15:18 +0000 (UTC) Received: from smtp2.wemm.org (smtp2.wemm.org [IPv6:2001:470:67:39d::78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp2.wemm.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 714A01A3E; Mon, 4 May 2015 05:15:18 +0000 (UTC) Received: from overcee.wemm.org (canning.wemm.org [192.203.228.65]) by smtp2.wemm.org (Postfix) with ESMTP id 1B1CE777; Sun, 3 May 2015 22:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=m20140428; t=1430716518; bh=hQO32tgcNvR2LfqFdY3c2D0OGlZzoYcSH/mM/DNONlI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=k28lgYeEYH+pbuA7SBufFAbBgUObbUztc5z4W3s7aSvDE9WOQBUHu86toLBvU9ZKo uzYwP80BR1cAlaGz/o4vaztgwjq+sCwtLZeh2pAGJ/4CuR6qeKibMeOcD/J5nxqRCy Yu8N6DgywYweyzAKw77KGUAhjGOHqEkd+KNT64cw= From: Peter Wemm To: Gleb Smirnoff Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r281643 - head/sys/net Date: Sun, 03 May 2015 22:15:13 -0700 Message-ID: <2092700.7byBvhDAMg@overcee.wemm.org> User-Agent: KMail/4.14.3 (FreeBSD/11.0-CURRENT; KDE/4.14.3; amd64; ; ) In-Reply-To: <1771261.fW4ZlvR2Pp@overcee.wemm.org> References: <201504170639.t3H6dGd7075429@svn.freebsd.org> <1897115.Jgl4mMPfrQ@overcee.wemm.org> <1771261.fW4ZlvR2Pp@overcee.wemm.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3072967.PFjSqYtG8m"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2015 05:15:18 -0000 --nextPart3072967.PFjSqYtG8m Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" On Sunday, May 03, 2015 09:52:08 PM Peter Wemm wrote: > On Sunday, May 03, 2015 09:31:01 PM Peter Wemm wrote: > > On Friday, April 17, 2015 06:39:16 AM Gleb Smirnoff wrote: > > > Author: glebius > > > Date: Fri Apr 17 06:39:15 2015 > > > New Revision: 281643 > > > URL: https://svnweb.freebsd.org/changeset/base/281643 > > >=20 > > > Log: > > > Bring in if_types.h from projects/ifnet, where types are > > > defined in enum. > > >=20 > > > Modified: > > > head/sys/net/if_types.h > >=20 > > I'm sorry, but this breaks the freebsd.org cluster. > >=20 > > 281642 works > > 281643 fails > > head with 281643 reverted works > >=20 > > IPv6 doesn't work on systems with pf, carp and multiple interfaces.= I > > have > > nothing more specific than that. >=20 > The kernel is smaller with the enums: > text data bss dec hex > 11438123 730686 2998048 15166857 0xe76d89 > 11437787 730686 2998048 15166521 0xe76c39 >=20 > The first is with the #defines, the second is enums. The enums cause= d 336 > bytes less code to be generated, so presumably the enums enabled some= > "optimization" that wasn't expected. More data; looking at size *.o in the kernel compile obj directory to s= ee what=20 changes size with enum vs #define: @@ -470,10 +470,10 @@ 1158 124 0 1282 0x502 imgact_shell.o 11617 160 36 11813 0x2e25 in.o 343 0 0 343 0x157 in4_cksum.o =2D 22155 0 0 22155 0x568b in6.o + 22187 0 0 22187 0x56ab in6.o 2084 0 0 2084 0x824 in6_cksum.o 1155 200 0 1355 0x54b in6_gif.o =2D 5208 12 16 5236 0x1474 in6_ifattach.o + 5224 12 16 5252 0x1484 in6_ifattach.o 21933 864 0 22797 0x590d in6_mcast.o 6860 0 0 6860 0x1acc in6_pcb.o 2627 6960 248 9835 0x266b in6_proto.o @@ -750,8 +750,8 @@ 25424 452 0 25876 0x6514 mvs.o 0 24 0 24 0x18 mvs_if.o 5989 268 0 6257 0x1871 mvs_pci.o =2D 17111 388 72 17571 0x44a3 nd6.o =2D 15251 92 48 15391 0x3c1f nd6_nbr.o + 17287 388 72 17747 0x4553 nd6.o + 15366 92 48 15506 0x3c92 nd6_nbr.o 16318 66 16 16400 0x4010 nd6_rtr.o 466 196 8 670 0x29e nehemiah.o 7844 2412 2036 12292 0x3004 netisr.o The size changes are confined to the ipv6 stack. =2D-=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI= 6FJV UTF-8: for when a ' or ... just won\342\200\231t do\342\200\246 --nextPart3072967.PFjSqYtG8m Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJVRwBhAAoJEDXWlwnsgJ4EUwgIAOGXDJRvXPMPr8w1jsULGAHs fKqKASPgx3dEXOuCwxLD7n88Bdgbq53NGjSTIVA2+IVnDXZWN6b1IwrOSnMIhBj7 lO/S+grBIl+Lcu1D/sgKvGXOJJbqlran7ufoAJ4Vp3QKfd4pZBC6jj//fqD2o5jc EMkaiuSogbfu+EBFPS4qEGNFjfboGT28+JkF5vx8Q2T6JT8wUrexOpvliLjD3LnN tBPScju/2PncHlCbN/lKTBACDiHLrFP+I0N4gshHUYf8HEz9fR/urjlGQsRZ+kSR td8N/RJrGD6USZmyL3LTA4AI14TFgr6QwkGYdoB3h9WWQfcy5CA9B91AbEY+2co= =uPbB -----END PGP SIGNATURE----- --nextPart3072967.PFjSqYtG8m--