From owner-freebsd-net@FreeBSD.ORG Tue Sep 30 15:58:44 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D58B116A4C1; Tue, 30 Sep 2003 15:58: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 22B9143FDF; Tue, 30 Sep 2003 15:58: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 h8UMwcDH007509; Tue, 30 Sep 2003 15:58:38 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.9/8.12.3/Submit) id h8UMwbJu007508; Tue, 30 Sep 2003 15:58:37 -0700 Date: Tue, 30 Sep 2003 15:58:37 -0700 From: Brooks Davis To: Brooks Davis Message-ID: <20030930225826.GD14082@Odin.AC.HMC.Edu> References: <20030930010327.GB31222@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FFoLq8A0u+X9iRU8" Content-Disposition: inline In-Reply-To: <20030930010327.GB31222@Odin.AC.HMC.Edu> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: arch@freebsd.org cc: net@freebsd.org Subject: Re: adding if_dev member to struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 22:58:45 -0000 --FFoLq8A0u+X9iRU8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Since there are some objections to this proposal, I have an alternative one for consideration. I would add two new members to ifnet, if_dname and if_dunit, containing the driver name and unit which would be similar to the current if_name and if_unit with the exception that if_dunit would be an int to match unit in device_t. Negative values of unit would mean "no unit" for pseudo devices where units don't really make sense. Because this would add annoying overhead to the init routine, I would also propose adding an if_initname() function that would hide the initialization of these variables and (if MFC'd) aid portability between 4 and 5. Is this a better or worse idea then adding if_dev? -- 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 --FFoLq8A0u+X9iRU8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/egqGXY6L6fI4GtQRAppjAKDhX7AxkI82GY1tOTTuuBEpkhLLlwCggWbp jKuVQDNjutcNd/F/caXYX+Y= =D74r -----END PGP SIGNATURE----- --FFoLq8A0u+X9iRU8--