[NETDEV] Add notion of link state
authorMichael Brown <mcb30@etherboot.org>
Tue, 22 Apr 2008 16:40:50 +0000 (17:40 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 22 Apr 2008 16:40:50 +0000 (17:40 +0100)
commit1ba959c6b342b314dfb01ca0a926ed6832c090b3
treed977e301ebfe46d76f9def376e9edb173b96eb26
parentd72bf13b788104aa4c853800c5627c1074d30ca7
[NETDEV] Add notion of link state

Add ability for network devices to flag link up/down state to the
networking core.

Autobooting code will now wait for link-up before attempting DHCP.

IPoIB reflects the Infiniband link state as the network device link state
(which is not strictly correct; we also need a succesful IPoIB IPv4
broadcast group join), but is probably more informative.
13 files changed:
src/arch/i386/drivers/net/undinet.c
src/drivers/net/e1000/e1000.c
src/drivers/net/ipoib.c
src/drivers/net/legacy.c
src/drivers/net/mtnic.c
src/drivers/net/natsemi.c
src/drivers/net/pnic.c
src/drivers/net/rtl8139.c
src/include/gpxe/errfile.h
src/include/gpxe/netdevice.h
src/include/usr/ifmgmt.h
src/usr/autoboot.c
src/usr/ifmgmt.c