69d094ef | 13-Jun-2025 |
Breno Leitao <leitao@debian.org> |
selftests: net: add netconsole test for cmdline configuration
Add a new selftest to verify netconsole module loading with command line arguments. This test exercises the init_netconsole() path and v
selftests: net: add netconsole test for cmdline configuration
Add a new selftest to verify netconsole module loading with command line arguments. This test exercises the init_netconsole() path and validates proper parsing of the netconsole= parameter format.
The test: - Loads netconsole module with cmdline configuration instead of dynamic reconfiguration - Validates message transmission through the configured target - Adds helper functions for cmdline string generation and module validation
This complements existing netconsole selftests by covering the module initialization code path that processes boot-time parameters. This test is useful to test issues like the one described in [1].
Link: https://lore.kernel.org/netdev/Z36TlACdNMwFD7wv@dev-ushankar.dev.purestorage.com/ [1] Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20250613-rework-v3-8-0752bf2e6912@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
224a6e60 | 09-Jun-2025 |
Breno Leitao <leitao@debian.org> |
selftests: netconsole: Add support for basic netconsole target format
Extend the netconsole selftest to validate both basic and extended target formats. The basic format is a simpler variant that do
selftests: netconsole: Add support for basic netconsole target format
Extend the netconsole selftest to validate both basic and extended target formats. The basic format is a simpler variant that doesn't support userdata or release functionality.
The test now validates that netconsole works correctly in both configurations, improving test coverage for different netconsole deployment scenarios.
Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20250609-netcons_ext-v3-4-5336fa670326@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
7dcb6535 | 08-Jan-2025 |
Breno Leitao <leitao@debian.org> |
netconsole: selftest: Delete all userdata keys
Modify the cleanup function to remove all userdata keys created during the test, instead of just deleting a single predefined key. This ensures a more
netconsole: selftest: Delete all userdata keys
Modify the cleanup function to remove all userdata keys created during the test, instead of just deleting a single predefined key. This ensures a more thorough cleanup of temporary resources.
Move the KEY_PATH variable definition inside the set_user_data function to reduce global variables and improve encapsulation. The KEY_PATH variable is now dynamically created when setting user data.
This change has no effect on the current test, while improving an upcoming test that would create several userdata entries.
Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250108-netcons_overflow_test-v3-3-3d85eb091bec@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|