| 236682db | 07-Nov-2025 |
Breno Leitao <leitao@debian.org> |
selftest: netcons: add test for netconsole over bonded interfaces
This patch adds a selftest that verifies netconsole functionality over bonded network interfaces using netdevsim. It sets up two bon
selftest: netcons: add test for netconsole over bonded interfaces
This patch adds a selftest that verifies netconsole functionality over bonded network interfaces using netdevsim. It sets up two bonded interfaces acting as transmit (TX) and receive (RX) ends, placed in separate network namespaces. The test sends kernel log messages and verifies that they are properly received on the bonded RX interfaces with both IPv4 and IPv6, and using basic and extended netconsole formats.
This patchset aims to test a long-standing netpoll subsystem where netpoll has multiple users. (in this case netconsole and bonding). A similar selftest has been discussed in [1] and [2].
This test also tries to enable bonding and netpoll in different order, just to guarantee that all the possibilities are exercised.
Link: https://lore.kernel.org/all/20250905-netconsole_torture-v3-0-875c7febd316@debian.org/ [1] Link: https://lore.kernel.org/lkml/96b940137a50e5c387687bb4f57de8b0435a653f.1404857349.git.decot@googlers.com/ [2] Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20251107-netconsole_torture-v10-4-749227b55f63@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
show more ...
|
| 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 ...
|