]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: netconsole: validate target resume
authorAndre Carvalho <asantostc@gmail.com>
Sun, 18 Jan 2026 11:00:27 +0000 (11:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:09:12 +0000 (19:09 -0800)
commit6ecc08329bab2c87f579cf1a8ab7799d8d88d9bc
tree785b9da5224ff70f8000e7ff003b2a44e9640bfb
parent220dbe3c76ed13a7b68393212a625eaf1770b96f
selftests: netconsole: validate target resume

Introduce a new netconsole selftest to validate that netconsole is able
to resume a deactivated target when the low level interface comes back.

The test setups the network using netdevsim, creates a netconsole target
and then remove/add netdevsim in order to bring the same interfaces
back. Afterwards, the test validates that the target works as expected.

Targets are created via cmdline parameters to the module to ensure that
we are able to resume targets that were bound by mac and interface name.

Reviewed-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Andre Carvalho <asantostc@gmail.com>
Tested-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260118-netcons-retrigger-v11-7-4de36aebcf48@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/Makefile
tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh
tools/testing/selftests/drivers/net/netcons_resume.sh [new file with mode: 0755]