Re: [PATCH] All my Pcmcia cards are 'eth0'

From: Jean Tourrilhes
Date: Fri Nov 21 2003 - 14:13:19 EST


Bill Nottingham wrote :
>
> Andi Kleen (ak@xxxxxx) said:
> > > There are some situations where you have to jump through hoops
> > > because it can't atomically swap two device names (i.e.,
> > > eth0 <-> eth1, but the code itself seems to work ok in use here...
> >
> > Adding such swapping should not be very hard if someone is motivated.
> > Interestingly you're the first to complain about it missing...
>
> When I looked at it, I assumed it was a limitation of the
> kernel interface, in that it only operated on one device at
> a time... or are you talking about just doing the switch in
> nameif itself with a temporary device name?

Have you tried with nameif running from hotplug ? I'm sure
that would fix your problem, because the first device would be renamed
before the second would even be created (but you may want to test).
That's probably a second reason why running nameif from
hotplug is the right way forward.

> Bill

Jean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/