Skip to content

Commit

Permalink
selftests: rtnetlink: try concurrent change of ifalias
Browse files Browse the repository at this point in the history
to make sure this is serialized correctly.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Westphal authored and David S. Miller committed Oct 4, 2017
1 parent 5c45121 commit e9b871e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/testing/selftests/net/rtnetlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit e9b871e

Please sign in to comment.