Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2003 10:45:15 +0200
From:      Vincent Jardin <vjardin@wanadoo.fr>
To:        Brooks Davis <brooks@one-eyed-alien.net>, arch@freebsd.org, net@freebsd.org
Subject:   Re: adding if_dev member to struct ifnet
Message-ID:  <200309301045.15776.vjardin@wanadoo.fr>
In-Reply-To: <20030930010327.GB31222@Odin.AC.HMC.Edu>
References:  <20030930010327.GB31222@Odin.AC.HMC.Edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Mardi 30 Septembre 2003 03:03, Brooks Davis a =E9crit :
> [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 NUL=
L
> 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?

Yes, if it helps to remove if_name/if_unit, it is a thing to do. Moreover=
 it=20
sounds a good idea to have the if_dev field into the ifnet structure.

Regards,
  Vincent



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