Date: Wed, 21 Apr 2004 22:39:18 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: net@freebsd.org Subject: Re: RFC: if_clone overhaul Message-ID: <20040422053916.GA11221@Odin.AC.HMC.Edu> In-Reply-To: <20040421042453.GA8866@Odin.AC.HMC.Edu> References: <20040421042453.GA8866@Odin.AC.HMC.Edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 20, 2004 at 09:24:53PM -0700, Brooks Davis wrote: > Please test/review the following patch to the network interface cloneing > code. This code is a major overhaul of the cloning infrastructure. Repeat after me, always test your "trivial" last minute changes. You need to apply the following patch after applying the previous patch if you want the code to compile. -- Brooks Change 51546 by brooks@brooks_minya on 2004/04/21 22:29:18 Unreorder struct if_clone so initalizer works. Should probably switch to C99 sparc initalizers.. Affected files ... =2E. //depot/user/brooks/xname/sys/net/if_clone.h#11 edit Differences ... =3D=3D=3D=3D //depot/user/brooks/xname/sys/net/if_clone.h#11 (text+ko) =3D= =3D=3D=3D @@ -61,14 +61,15 @@ /* via ifc_(alloc|free)_unit(). */ int ifc_bmlen; /* (c) Bitmap length. */ void *ifc_data; /* (*) Data for ifc_* functions. */ - long ifc_refcnt; /* (i) Refrence count. */ - struct mtx ifc_mtx; /* Muted to protect members. */ =20 /* (c) Driver specific cloning functions. Called with no locks held. */ void (*ifc_attach)(struct if_clone *); int (*ifc_match)(struct if_clone *, const char *); int (*ifc_create)(struct if_clone *, char *, size_t); int (*ifc_destroy)(struct if_clone *, struct ifnet *); + + long ifc_refcnt; /* (i) Refrence count. */ + struct mtx ifc_mtx; /* Muted to protect members. */ }; =20 void if_clone_init(void); --=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 --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAh1pyXY6L6fI4GtQRApczAJ4ye4D1Srdo7YHZBVCLMFSfKhkVyACgmzA4 lwnSU8vee80r4G4cgeeW6zI= =AKIr -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040422053916.GA11221>