From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas de Grenier de Latour Date: Sun, 09 Apr 2006 19:28:52 +0000 Subject: Re: net interface renaming issue (+fix?) Message-Id: <20060409212852.1b7e5a24@eusebe> List-Id: References: <20060409192140.73644723@eusebe> In-Reply-To: <20060409192140.73644723@eusebe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sun, 9 Apr 2006 22:00:49 +0400, Andrey Borzenkov wrote: > net/core/dev.c:netdev_run_todo(): > err = netdev_register_sysfs(dev); > if (err) > printk(KERN_ERR "%s: failed sysfs > registration (%d)\n", > dev->name, err); > dev->reg_state = NETREG_REGISTERED; > break; > > So basically there is a window between net device appearing in sysfs > and 'address' returning usable value. To test you could move > dev->reg_state assignment before netdev_register_sysfs call; if this > helps it makes sense ask on net list if this is safe change. As far as i can test, yes, it works fine. I will forward your suggestion to -netdev@. Btw, many thanks to both of you, Andrey and Sergey, for the fast answers and crystal-clear explanations of the actual issue. -- TGL. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel