[PATCH net-next v2 0/2] net: selftest: Introduce netconsole torture test

Breno Leitao posted 2 patches 4 weeks ago
tools/testing/selftests/drivers/net/Makefile       |   1 +
.../selftests/drivers/net/lib/sh/lib_netcons.sh    |  30 +++--
.../selftests/drivers/net/netcons_torture.sh       | 127 +++++++++++++++++++++
3 files changed, 147 insertions(+), 11 deletions(-)
[PATCH net-next v2 0/2] net: selftest: Introduce netconsole torture test
Posted by Breno Leitao 4 weeks ago
Create a netconsole test that puts a lot of pressure on the netconsole
list manipulation. Do it by creating dynamic targets and deleting
targets while messages are being sent. Also put interface down while the

In order to do it, refactor create_dynamic_target(), so it can be used to
create random targets in the torture test.

Signed-off-by: Breno Leitao <leitao@debian.org>
---
Changes in v2:
- Reuse the netconsole creation from lib_netcons.sh. Thus, refactoring
  the create_dynamic_target() (Jakub)
- Move the "wait" to after all the messages has been sent.
- Link to v1: https://lore.kernel.org/r/20250902-netconsole_torture-v1-1-03c6066598e9@debian.org

---
Breno Leitao (2):
      selftest: netcons: refactor target creation
      selftest: netcons: create a torture test

 tools/testing/selftests/drivers/net/Makefile       |   1 +
 .../selftests/drivers/net/lib/sh/lib_netcons.sh    |  30 +++--
 .../selftests/drivers/net/netcons_torture.sh       | 127 +++++++++++++++++++++
 3 files changed, 147 insertions(+), 11 deletions(-)
---
base-commit: 2fd4161d0d2547650d9559d57fc67b4e0a26a9e3
change-id: 20250902-netconsole_torture-8fc23f0aca99

Best regards,
--  
Breno Leitao <leitao@debian.org>
Re: [PATCH net-next v2 0/2] net: selftest: Introduce netconsole torture test
Posted by Jakub Kicinski 4 weeks ago
On Thu, 04 Sep 2025 11:00:39 -0700 Breno Leitao wrote:
> Create a netconsole test that puts a lot of pressure on the netconsole
> list manipulation. Do it by creating dynamic targets and deleting
> targets while messages are being sent. Also put interface down while the
> 
> In order to do it, refactor create_dynamic_target(), so it can be used to
> create random targets in the torture test.

You either have to post it in the same series as the fix, or wait for
the fix to be present in net-next. Without your pending fix this will
obviously not pass thru the CI :/
Re: [PATCH net-next v2 0/2] net: selftest: Introduce netconsole torture test
Posted by Breno Leitao 3 weeks, 6 days ago
On Thu, Sep 04, 2025 at 02:59:25PM -0700, Jakub Kicinski wrote:
> On Thu, 04 Sep 2025 11:00:39 -0700 Breno Leitao wrote:
> > Create a netconsole test that puts a lot of pressure on the netconsole
> > list manipulation. Do it by creating dynamic targets and deleting
> > targets while messages are being sent. Also put interface down while the
> > 
> > In order to do it, refactor create_dynamic_target(), so it can be used to
> > create random targets in the torture test.
> 
> You either have to post it in the same series as the fix, or wait for
> the fix to be present in net-next. Without your pending fix this will
> obviously not pass thru the CI :/

Ack! I've sent the netpoll fix and the selftest in the same patchset, as
you suggested.

https://lore.kernel.org/all/20250905-netconsole_torture-v3-0-875c7febd316@debian.org/

--breno