From 1ba959c6b342b314dfb01ca0a926ed6832c090b3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 22 Apr 2008 17:40:50 +0100 Subject: [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. --- src/arch/i386/drivers/net/undinet.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/arch/i386/drivers/net/undinet.c') diff --git a/src/arch/i386/drivers/net/undinet.c b/src/arch/i386/drivers/net/undinet.c index 07bec560b..512c60e9d 100644 --- a/src/arch/i386/drivers/net/undinet.c +++ b/src/arch/i386/drivers/net/undinet.c @@ -708,6 +708,9 @@ int undinet_probe ( struct undi_device *undi ) { undinic->hacks |= UNDI_HACK_EB54; } + /* Mark as link up; we don't handle link state */ + netdev_link_up ( netdev ); + /* Register network device */ if ( ( rc = register_netdev ( netdev ) ) != 0 ) goto err_register; -- cgit v1.2.3-55-g7522