Re: Problems with network autoconfiguration for diskless clients

From: Tim Waugh (twaugh@redhat.com)
Date: Sun Feb 27 2000 - 13:17:11 EST


On Sun, 27 Feb 2000, Adam Fritzler wrote:

> if (!netif_device_present(dev))
> return -ENODEV;
>
> That check is failing for every driver I've tried. Are the drivers
> broken?

I think it's a bug in dev.c:

--- linux/net/core/dev.c~ Sun Feb 27 17:53:51 2000
+++ linux/net/core/dev.c Sun Feb 27 17:54:06 2000
@@ -2128,6 +2128,7 @@
                                 dev->iflink = dev->ifindex;
                         if (dev->rebuild_header == NULL)
                                 dev->rebuild_header = default_rebuild_header;
+ set_bit(__LINK_STATE_PRESENT, &dev->state);
                         dev_init_scheduler(dev);
                 }
         }

It would be nice if this code and the code in register_netdevice could be
unified in some common function..

Tim.
*/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:17 EST