lkml.org 
[lkml]   [2000]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Problems with network autoconfiguration for diskless clients
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.054 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site