]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fib_tests: sleep after changing carrier
authorDavid Ahern <dsahern@gmail.com>
Tue, 13 Feb 2018 16:37:36 +0000 (08:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Feb 2018 19:34:28 +0000 (14:34 -0500)
commit41b164b2a35acbc87d2a3e40597cc2098364a5ad
tree621fd561ed3ec2ffe9c94dc33f7abee560662e91
parent9c11cc472b36194f640d976b30fe5f529a086b15
selftests: fib_tests: sleep after changing carrier

sleep for a second after setting carrier down to allow linkwatch
to propagate the change to the routing stack via netdev_state_change.
As it stands there is a race setting carrier down on the dummy
device and then checking the linkdown flag in the routes.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_tests.sh