OSDN Git Service

selftests: xsk: cleanup veth pair at ctrl-c
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 10 May 2022 11:56:01 +0000 (13:56 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 11 May 2022 15:03:16 +0000 (08:03 -0700)
commitd41cb6c47474484c647933702e9fa8fb5054cdf2
tree62953b8fe60f8ad060d646a68bb64d346f868e15
parentdb1bd7a99454db5d9003ddcd64e771e265170f5b
selftests: xsk: cleanup veth pair at ctrl-c

Remove the veth pair when the tests are aborted by pressing
ctrl-c. Currently in this situation, the veth pair is left on the
system polluting the netdev space.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/r/20220510115604.8717-7-magnus.karlsson@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_xsk.sh