]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5cdb6e311c16b6cbb76a7b4995f87b8eec244110
tree62953b8fe60f8ad060d646a68bb64d346f868e15
parent11a48141225c3b039d5d88b82b80d01c883f92e0
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