Commit:     53aadcc90931dfa150f76ce9a5f9e8f3e43d57df
Parent:     c38c83cb705a41e30a99545ae2314c00e3b9bf1c
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 27 14:31:52 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Mar 27 14:31:52 2007 -0700

    [IPV6]: Set IF_READY if the device is up and has carrier
    We still need to set the IF_READY flag in ipv6_add_dev for the case
    where all addresses (including the link-local) are deleted and then
    recreated.  In that case the IPv6 device too will be destroyed and
    then recreated.
    In order to prevent the original problem, we simply ensure that
    the device is up before setting IF_READY.
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/ipv6/addrconf.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 1b61699..7552663 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -342,6 +342,9 @@ static struct inet6_dev * ipv6_add_dev(struct net_device 
+       if (netif_running(dev) && netif_carrier_ok(dev))
+               ndev->if_flags |= IF_READY;
        ndev->tstamp = jiffies;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to