diff options
author | 2017-10-04 16:22:59 +0200 | |
---|---|---|
committer | 2017-10-04 10:33:59 -0700 | |
commit | e9b871ee098dfb91780e13bfc6e91e82c7b4ad73 (patch) | |
tree | 65fca23b103360accfb6b687059aabd429ec84c5 /tools | |
parent | rtnetlink: remove __rtnl_af_unregister (diff) | |
download | linux-e9b871ee098dfb91780e13bfc6e91e82c7b4ad73.tar.gz linux-e9b871ee098dfb91780e13bfc6e91e82c7b4ad73.tar.bz2 linux-e9b871ee098dfb91780e13bfc6e91e82c7b4ad73.zip |
selftests: rtnetlink: try concurrent change of ifalias
to make sure this is serialized correctly.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/rtnetlink.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh index 62c87da92770..e8c86c416ed0 100755 --- a/tools/testing/selftests/net/rtnetlink.sh +++ b/tools/testing/selftests/net/rtnetlink.sh @@ -278,6 +278,12 @@ kci_test_ifalias() ip link show "$devdummy" | grep -q "alias $namewant" check_fail $? + for i in $(seq 1 100); do + uuidgen > "$syspathname" & + done + + wait + # re-add the alias -- kernel should free mem when dummy dev is removed ip link set dev "$devdummy" alias "$namewant" check_err $? |