diff mbox series

[net] selftests: rtnetlink: remove netdevsim device after ipsec offload test

Message ID e1cb94f4f82f4eca4a444feec4488a1323396357.1687466906.git.sd@queasysnail.net (mailing list archive)
State Accepted
Commit 5f789f103671fec3733ebe756e56adf15c90c21d
Delegated to: Netdev Maintainers
Headers show
Series [net] selftests: rtnetlink: remove netdevsim device after ipsec offload test | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net
netdev/fixes_present success Fixes tag present in non-next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/cc_maintainers fail 1 blamed authors not CCed: davem@davemloft.net; 4 maintainers not CCed: kuba@kernel.org edumazet@google.com davem@davemloft.net pabeni@redhat.com
netdev/build_clang success Errors and warnings before: 8 this patch: 8
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success net selftest script(s) already in Makefile
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 8 this patch: 8
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Sabrina Dubroca June 22, 2023, 9:03 p.m. UTC
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>
---
 tools/testing/selftests/net/rtnetlink.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Horman June 23, 2023, 6:53 a.m. UTC | #1
On Thu, Jun 22, 2023 at 11:03:34PM +0200, Sabrina Dubroca wrote:
> 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>
Jiri Pirko June 23, 2023, 7:46 a.m. UTC | #2
Thu, Jun 22, 2023 at 11:03:34PM CEST, sd@queasysnail.net wrote:
>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: Jiri Pirko <jiri@nvidia.com>

Thanks!
patchwork-bot+netdevbpf@kernel.org June 24, 2023, 10:20 p.m. UTC | #3
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 22 Jun 2023 23:03:34 +0200 you wrote:
> 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>
> 
> [...]

Here is the summary with links:
  - [net] selftests: rtnetlink: remove netdevsim device after ipsec offload test
    https://git.kernel.org/netdev/net/c/5f789f103671

You are awesome, thank you!
diff mbox series

Patch

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