
27 Oct
2011
27 Oct
'11
11:36 p.m.
Am Donnerstag 27 Oktober 2011, 23:31:35 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.
Signed-off-by: Michael Walle michael@walle.cc Cc: Prafulla Wadaskar prafulla@marvell.com Cc: Mike Frysinger vapier@gentoo.com
sorry mike, i'll fix this for v2 ;)
--
Michael