[IPV6]: Set IF_READY if the device is up and has carrier
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 27 Mar 2007 21:31:52 +0000 (14:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2007 21:31:52 +0000 (14:31 -0700)
commit53aadcc90931dfa150f76ce9a5f9e8f3e43d57df
treefe2029e1a5bc03250b365bfe544940957ffefc8a
parentc38c83cb705a41e30a99545ae2314c00e3b9bf1c
[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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c