projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b7331
)
selftests: rtnetlink: remove netdevsim device after ipsec offload test
author
Sabrina Dubroca
<sd@queasysnail.net>
Thu, 22 Jun 2023 21:03:34 +0000
(23:03 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Sat, 24 Jun 2023 22:19:39 +0000
(15:19 -0700)
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>
tools/testing/selftests/net/rtnetlink.sh
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/net/rtnetlink.sh
b/tools/testing/selftests/net/rtnetlink.sh
index
383ac6f
..
ba286d6
100755
(executable)
--- 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