• Michael Walle's avatar
    net: introduce per device index · fea7dcae
    Michael Walle authored
    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.
    Signed-off-by: default avatarMichael Walle <michael@walle.cc>
    Cc: Prafulla Wadaskar <prafulla@marvell.com>
    Cc: Mike Frysinger <vapier@gentoo.com>
    Cc: Wolfgang Denk <wd@denx.de>
    Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
    fea7dcae
Name
Last commit
Last update
..
Makefile Loading commit data...
bootp.c Loading commit data...
bootp.h Loading commit data...
dns.c Loading commit data...
dns.h Loading commit data...
eth.c Loading commit data...
net.c Loading commit data...
nfs.c Loading commit data...
nfs.h Loading commit data...
rarp.c Loading commit data...
rarp.h Loading commit data...
sntp.c Loading commit data...
sntp.h Loading commit data...
tftp.c Loading commit data...
tftp.h Loading commit data...