summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2023-06-22 23:03:34 +0200
committerJakub Kicinski <kuba@kernel.org>2023-06-24 15:19:39 -0700
commit5f789f103671fec3733ebe756e56adf15c90c21d (patch)
tree00e57df19808ef3d8d87d7a8f0564fe8f130468d
parent11b73313c12403f617b47752db0ab3deef201af7 (diff)
downloadlinux-stable-5f789f103671fec3733ebe756e56adf15c90c21d.tar.gz
linux-stable-5f789f103671fec3733ebe756e56adf15c90c21d.tar.bz2
linux-stable-5f789f103671fec3733ebe756e56adf15c90c21d.zip
selftests: rtnetlink: remove netdevsim device after ipsec offload test
On systems where netdevsim is built-in or loaded before the test starts, kci_test_ipsec_offload doesn't remove the netdevsim device it created during the test. Fixes: e05b2d141fef ("netdevsim: move netdev creation/destruction to dev probe") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/e1cb94f4f82f4eca4a444feec4488a1323396357.1687466906.git.sd@queasysnail.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rwxr-xr-xtools/testing/selftests/net/rtnetlink.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
index 383ac6fc037d..ba286d680fd9 100755
--- a/tools/testing/selftests/net/rtnetlink.sh
+++ b/tools/testing/selftests/net/rtnetlink.sh
@@ -860,6 +860,7 @@ EOF
fi
# clean up any leftovers
+ echo 0 > /sys/bus/netdevsim/del_device
$probed && rmmod netdevsim
if [ $ret -ne 0 ]; then