]> git.ipfire.org Git - thirdparty/linux.git/commit
selftest: netcons: refactor target creation
authorBreno Leitao <leitao@debian.org>
Fri, 7 Nov 2025 14:03:38 +0000 (06:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Nov 2025 02:34:44 +0000 (18:34 -0800)
commit39acc6a95eefcf814efa226d8813f89e7e03496e
treeda005a20d2c03510fd27aa78029d89b348763d37
parent49c8d2c1f94cc2f4d1a108530d7ba52614b874c2
selftest: netcons: refactor target creation

Extract the netconsole target creation from create_dynamic_target(), by
moving it from create_dynamic_target() into a new helper function. This
enables other tests to use the creation of netconsole targets with
arbitrary parameters and no sleep.

The new helper will be utilized by forthcoming torture-type selftests
that require dynamic target management.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251107-netconsole_torture-v10-2-749227b55f63@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh