From owner-freebsd-arch@FreeBSD.ORG Mon Sep 29 18:03:44 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 346C816A4B3; Mon, 29 Sep 2003 18:03:44 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7405344003; Mon, 29 Sep 2003 18:03:43 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.9/8.12.3) with ESMTP id h8U13dgg032414; Mon, 29 Sep 2003 18:03:39 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h8U13deH032400; Mon, 29 Sep 2003 18:03:39 -0700 Date: Mon, 29 Sep 2003 18:03:39 -0700 From: Brooks Davis To: arch@freebsd.org, net@freebsd.org Message-ID: <20030930010327.GB31222@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Subject: adding if_dev member to struct ifnet X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 01:03:44 -0000 --XF85m9dhOBO43t/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Previously posted to -net in another form.] I propose to add an if_dev member to struct ifnet. It would be of type device_t and be defined to point to the device for the interface or NULL if there is no device (or if there was not an easy way to get access to one). This change would codify the the relationship between an interface and the underlying physical device. It also would get rid of the existing abuses of if_name to look up the driver associated with an interface and simplify a number of messy cases in the conversion from if_unit and if_name to if_xname. Does this seem like a reasonable thing to do? -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --XF85m9dhOBO43t/C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/eNY0XY6L6fI4GtQRAvgoAKDB7TmwAKtFcJiIA0DdfHM1GSrciACdFisT 0J9J5j/DNVyvh3P9BDxu8jI= =UIKO -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C--