Re: [RFC] usbnet: use eth%d name for known ethernet devices

Arnd Bergmann
2011-03-23T17:12:23Z

On Wednesday 23 March 2011, Andy Green wrote:
> > diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
> > index bc86f4b..c98d3a7 100644
> > --- a/drivers/net/usb/smsc95xx.c
> > +++ b/drivers/net/usb/smsc95xx.c
> > @@ -1231,7 +1231,7 @@ static const struct driver_info smsc95xx_info = {
>
> > - .flags = FLAG_ETHER | FLAG_SEND_ZLP,
> > + .flags = FLAG_ETHER | FLAG_SEND_ZLP | FLAG_REALLY_ETHER,
>
> > if ((dev->driver_info->flags& FLAG_ETHER) != 0&&
> > + ((dev->driver_info->flags& FLAG_PTP) == 0 ||
> > + (net->dev_addr [0]& 0x02) == 0))
> > strcpy (net->name, "eth%d");
>
> So it just takes the approach that all smsc95xx are going to be eth%d?

Right, and all other drivers that are obviously ethernet-only, including
future drivers.

Arnd