diff options
author | Florian Westphal <fw@strlen.de> | 2017-10-04 16:22:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-04 10:33:59 -0700 |
commit | e9b871ee098dfb91780e13bfc6e91e82c7b4ad73 (patch) | |
tree | 65fca23b103360accfb6b687059aabd429ec84c5 /tools | |
parent | 5c45121dc39026ab2139910e57cf933fd57d30f2 (diff) |
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 $? |