Commit 8ae72cbf authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

Revert "ipv6: Handle race in addrconf_dad_work"

This reverts commit a3ce2a21


Eric reported tests failings with commit. After digging into it,
the bottom line is that the DAD sequence is not to be messed with.
There are too many cases that are expected to proceed regardless
of whether a device is up.

Revert the patch and I will send a different solution for the
problem Rajendra reported.

Signed-off-by: default avatarDavid Ahern <>
Cc: Eric Dumazet <>
Reviewed-by: default avatarEric Dumazet <>
Signed-off-by: default avatarDavid S. Miller <>
parent 7a512eb8
......@@ -4032,12 +4032,6 @@ static void addrconf_dad_work(struct work_struct *w)
/* check if device was taken down before this delayed work
* function could be canceled
if (idev->dead || !(idev->if_flags & IF_READY))
goto out;
if (ifp->state == INET6_IFADDR_STATE_PREDAD) {
action = DAD_BEGIN;
......@@ -4083,6 +4077,11 @@ static void addrconf_dad_work(struct work_struct *w)
goto out;
if (idev->dead || !(idev->if_flags & IF_READY)) {
goto out;
if (ifp->state == INET6_IFADDR_STATE_DEAD) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment