[U-Boot] [PATCH 1/2] net: introduce per device index

Prafulla Wadaskar
2011-11-03T11:39:36Z

> -----Original Message-----
> From: Michael Walle [mailto:michael at walle.cc]
> Sent: Thursday, November 03, 2011 4:54 PM
> To: Michael Walle
> Cc: u-boot at lists.denx.de; Prafulla Wadaskar; Mike Frysinger;
> Wolfgang Denk; Michael Walle
> Subject: Re: [PATCH 1/2] net: introduce per device index
>
> Am Do, 27.10.2011, 22:31 schrieb Michael Walle:
> > Instead of counting the device index everytime a functions
> needs it, store
> > it in the eth_device struct. eth_register() keeps track of
> the indices and
> > updates the device's index number. This simplifies some
> functions in
> > net/eth.c.
> >
> > Additionally, a network driver can now query its index, eg.
> to get the
> > correct environment ethaddr name.
>
> Ping, anyone?
>
> > Signed-off-by: Michael Walle <michael@walle.cc>
> > Cc: Prafulla Wadaskar <prafulla@marvell.com>
> > Cc: Mike Frysinger <vapier@gentoo.com>
> > Cc: Wolfgang Denk <wd@denx.de>
> > ---
> > include/net.h | 1 +
> > net/eth.c | 41 ++++++++++++---------------------------

These patches are for u-boot-net.git.
Copying Ben on this.

Regards..
Prafulla . .