]> git.itanic.dy.fi Git - linux-stable/commit
selftests/net: use unique netns name for setup_loopback.sh setup_veth.sh
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 19 Dec 2023 09:48:54 +0000 (17:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Dec 2023 00:26:32 +0000 (00:26 +0000)
commit4416c5f53b439cec05a9ec88af71cb2e64a1e9aa
tree46bc2351d2cf3996cbc42dfe3424c56d042ae5c6
parent976fd1fe4f58ccb5762d1341a6e7524932a31557
selftests/net: use unique netns name for setup_loopback.sh setup_veth.sh

The setup_loopback and setup_veth use their own way to create namespace.
So let's just re-define server_ns/client_ns to unique name.
At the same time update the namespace name in gro.sh and toeplitz.sh.
As I don't have env to run toeplitz.sh. Here is only the gro test result.

 # ./gro.sh
 running test ipv4 data
 Expected {200 }, Total 1 packets
 Received {200 }, Total 1 packets.
 ...
 Gro::large test passed.
 All Tests Succeeded!

Acked-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/gro.sh
tools/testing/selftests/net/setup_loopback.sh
tools/testing/selftests/net/setup_veth.sh
tools/testing/selftests/net/toeplitz.sh