Message ID | 20220510115604.8717-7-magnus.karlsson@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d41cb6c47474484c647933702e9fa8fb5054cdf2 |
Delegated to: | BPF |
Headers | show |
Series | selftests: xsk: add busy-poll testing plus various fixes | expand |
diff --git a/tools/testing/selftests/bpf/test_xsk.sh b/tools/testing/selftests/bpf/test_xsk.sh index d06215ee843d..567500299231 100755 --- a/tools/testing/selftests/bpf/test_xsk.sh +++ b/tools/testing/selftests/bpf/test_xsk.sh @@ -97,6 +97,13 @@ NS0=root NS1=af_xdp${VETH1_POSTFIX} MTU=1500 +trap ctrl_c INT + +function ctrl_c() { + cleanup_exit ${VETH0} ${VETH1} ${NS1} + exit 1 +} + setup_vethPairs() { if [[ $verbose -eq 1 ]]; then echo "setting up ${VETH0}: namespace: ${NS0}"