diff options
| author | Hangbin Liu <liuhangbin@gmail.com> | 2023-12-19 17:48:54 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2023-12-23 00:26:32 +0000 |
| commit | 4416c5f53b439cec05a9ec88af71cb2e64a1e9aa (patch) | |
| tree | 46bc2351d2cf3996cbc42dfe3424c56d042ae5c6 /tools/testing/selftests/net/gro.sh | |
| parent | 976fd1fe4f58ccb5762d1341a6e7524932a31557 (diff) | |
| download | linux-next-4416c5f53b439cec05a9ec88af71cb2e64a1e9aa.tar.gz linux-next-4416c5f53b439cec05a9ec88af71cb2e64a1e9aa.zip | |
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>
Diffstat (limited to 'tools/testing/selftests/net/gro.sh')
| -rwxr-xr-x | tools/testing/selftests/net/gro.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/gro.sh b/tools/testing/selftests/net/gro.sh index 342ad27f631b..19352f106c1d 100755 --- a/tools/testing/selftests/net/gro.sh +++ b/tools/testing/selftests/net/gro.sh @@ -23,11 +23,11 @@ run_test() { # on every try. for tries in {1..3}; do # Actual test starts here - ip netns exec server_ns ./gro "${ARGS[@]}" "--rx" "--iface" "server" \ + ip netns exec $server_ns ./gro "${ARGS[@]}" "--rx" "--iface" "server" \ 1>>log.txt & server_pid=$! sleep 0.5 # to allow for socket init - ip netns exec client_ns ./gro "${ARGS[@]}" "--iface" "client" \ + ip netns exec $client_ns ./gro "${ARGS[@]}" "--iface" "client" \ 1>>log.txt wait "${server_pid}" exit_code=$? |
