]> git.baikalelectronics.ru Git - kernel.git/commit
wireguard: selftests: test multiple parallel streams
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 22 Feb 2021 16:25:45 +0000 (17:25 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Feb 2021 23:54:07 +0000 (15:54 -0800)
commit9fa7dd84a211a4c42c02871b98953f6dcfa82e91
treefeac64c95e48802fbe3d61cbb5f8821508bf254b
parente1ef37b177eaef03818cc9e1d07eae8648e936df
wireguard: selftests: test multiple parallel streams

In order to test ndo_start_xmit being called in parallel, explicitly add
separate tests, which should all run on different cores. This should
help tease out bugs associated with queueing up packets from different
cores in parallel. Currently, it hasn't found those types of bugs, but
given future planned work, this is a useful regression to avoid.

Fixes: 4dff5496e367 ("net: WireGuard secure network tunnel")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/wireguard/netns.sh