From owner-svn-src-all@FreeBSD.ORG Sun Aug 31 13:59:19 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 38BA3E25; Sun, 31 Aug 2014 13:59:19 +0000 (UTC) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DF8CF1A36; Sun, 31 Aug 2014 13:59:18 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C3D7D25D37C3; Sun, 31 Aug 2014 13:59:15 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 88032C770B1; Sun, 31 Aug 2014 13:59:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id yB2HQoJly743; Sun, 31 Aug 2014 13:59:12 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4410:f973:5b8d:9a90:cf0f] (unknown [IPv6:fde9:577b:c1a9:4410:f973:5b8d:9a90:cf0f]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 1843BC770B0; Sun, 31 Aug 2014 13:59:10 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: svn commit: r270877 - head/sys/net From: "Bjoern A. Zeeb" In-Reply-To: <201408311330.s7VDUtLH040605@svn.freebsd.org> Date: Sun, 31 Aug 2014 13:58:39 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <1EC00F70-7E6E-448F-AE85-BE87A3C753A1@FreeBSD.org> References: <201408311330.s7VDUtLH040605@svn.freebsd.org> To: Gleb Smirnoff X-Mailer: Apple Mail (2.1878.6) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sun, 31 Aug 2014 13:59:19 -0000 On 31 Aug 2014, at 13:30 , Gleb Smirnoff wrote: > Author: glebius > Date: Sun Aug 31 13:30:54 2014 > New Revision: 270877 > URL: http://svnweb.freebsd.org/changeset/base/270877 >=20 > Log: > Toss fields so that no padding field is required to achieve = alignment. >=20 > Modified: > head/sys/net/if_var.h >=20 > Modified: head/sys/net/if_var.h > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/net/if_var.h Sun Aug 31 12:48:13 2014 = (r270876) > +++ head/sys/net/if_var.h Sun Aug 31 13:30:54 2014 = (r270877) > @@ -146,11 +146,11 @@ struct ifnet { >=20 > /* Variable fields that are touched by the stack and drivers. */ > int if_flags; /* up/down, broadcast, etc. */ > + int if_drv_flags; /* driver-managed status flags = */ > int if_capabilities; /* interface features & = capabilities */ > int if_capenable; /* enabled features & = capabilities */ > void *if_linkmib; /* link-type-specific MIB data = */ > size_t if_linkmiblen; /* length of above data */ > - int if_drv_flags; /* driver-managed status flags = */ > u_int if_refcount; /* reference count */ >=20 > /* These fields are shared with struct if_data. */ > @@ -158,7 +158,6 @@ struct ifnet { > uint8_t if_addrlen; /* media address length */ > uint8_t if_hdrlen; /* media header length */ > uint8_t if_link_state; /* current link state */ > - uint32_t if_spare32; Doesn=92t this leave a gap on 64bit alignment now again? > uint32_t if_mtu; /* maximum transmission unit */ > uint32_t if_metric; /* routing metric (external = only) */ > uint64_t if_baudrate; /* linespeed */ >=20 =97=20 Bjoern A. Zeeb "Come on. Learn, goddamn it.", WarGames, 1983