Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 May 2015 22:15:13 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Gleb Smirnoff <glebius@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r281643 - head/sys/net
Message-ID:  <2092700.7byBvhDAMg@overcee.wemm.org>
In-Reply-To: <1771261.fW4ZlvR2Pp@overcee.wemm.org>
References:  <201504170639.t3H6dGd7075429@svn.freebsd.org> <1897115.Jgl4mMPfrQ@overcee.wemm.org> <1771261.fW4ZlvR2Pp@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2092700.7byBvhDAMg>