interface renaming

Max Laier max at love2party.net
Fri Nov 21 06:12:42 PST 2003


"Hiten Pandya" <hmp at xxxxxxxxxxxxx> wrote in
news:3FBDE47B.3060002 at xxxxxxxxxxxxxxxx
> Max Laier wrote:
>
> > 1/4th (or less) through, I started wondering about interface cloning.
> > do you have opinions on that? If memory serves me right, somebody was
> > talking about "interface framework"-work on IRC, just can't recall
> > who. Cloning is already used for gif and faith (and maybe in some
> > other places as well).
> >
>
> It would also be nice to have device cloning in general, though
> I have not researched this path very well.

Thing is, that it'd make the if_xname change somewhat easier if the
cloning is done beforehand. There are quite a few drivers using softc
arrays indexed with if_unit, which is not so good for the if_xname
change and not at all required as you almost always get the ifnet
structure and can use .if_sc instead.

I'd like to do this in one pass as it is rather trivial to do the
transition, but a pain to touch the if_*.c files twice in the same
places (attach/detach/ioctl). So how are the chances to get
"cloning+if_xname at once" committed? Referencing to your general
policy it'd be better to do the cloning first and if_xname as a
independent item ... tell me.

-- 
Best regards,
 Max                          mailto:max at xxxxxxxxxxxxxx







More information about the Kernel mailing list