From: Simon Horman <horms@kernel.org>
To: Breno Leitao <leitao@debian.org>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Shuah Khan <shuah@kernel.org>,
david decotigny <decot@googlers.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
linux-kselftest@vger.kernel.org, asantostc@gmail.com,
efault@gmx.de, calvin@wbinvd.org, kernel-team@meta.com,
jv@jvosburgh.net
Subject: Re: [PATCH net v9 4/4] selftest: netcons: add test for netconsole over bonded interfaces
Date: Fri, 7 Nov 2025 10:07:01 +0000 [thread overview]
Message-ID: <aQ3ExWwuiiN0xyBE@horms.kernel.org> (raw)
In-Reply-To: <20251106-netconsole_torture-v9-4-f73cd147c13c@debian.org>
On Thu, Nov 06, 2025 at 07:56:50AM -0800, Breno Leitao wrote:
> 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>
Thanks, my understanding is that this address Paolo's review of v7.
Reviewed-by: Simon Horman <horms@kernel.org>
...
> diff --git a/tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh b/tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh
...
> @@ -137,15 +145,17 @@ function _create_dynamic_target() {
> then
> echo 1 > "${NCPATH}"/extended
> fi
> +}
>
> +function create_and_enable_dynamic_target() {
> + _create_dynamic_target "${FORMAT}" "${NCPATH}"
> echo 1 > "${NCPATH}"/enabled
> -
> }
>
> function create_dynamic_target() {
> local FORMAT=${1:-"extended"}
> local NCPATH=${2:-"$NETCONS_PATH"}
> - _create_dynamic_target "${FORMAT}" "${NCPATH}"
> + create_and_enable_dynamic_target "${FORMAT}" "${NCPATH}"
Sorry for not noticing this when I looked over v8.
It's not that important and I don't think it should block progress.
create_and_enable_dynamic_target() seems to only be used here.
If so, perhaps the 'enabled' line could simply be added to
create_dynamic_target() instead of creating adding
create_and_enable_dynamic_target().
>
> # This will make sure that the kernel was able to
> # load the netconsole driver configuration. The console message
...
next prev parent reply other threads:[~2025-11-07 10:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-06 15:56 [PATCH net v9 0/4] net: netpoll: fix memory leak and add comprehensive selftests Breno Leitao
2025-11-06 15:56 ` [PATCH net v9 1/4] net: netpoll: fix incorrect refcount handling causing incorrect cleanup Breno Leitao
2025-11-06 15:56 ` [PATCH net v9 2/4] selftest: netcons: refactor target creation Breno Leitao
2025-11-06 15:56 ` [PATCH net v9 3/4] selftest: netcons: create a torture test Breno Leitao
2025-11-06 15:56 ` [PATCH net v9 4/4] selftest: netcons: add test for netconsole over bonded interfaces Breno Leitao
2025-11-07 10:07 ` Simon Horman [this message]
2025-11-07 13:55 ` Breno Leitao
2025-11-10 17:25 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aQ3ExWwuiiN0xyBE@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=asantostc@gmail.com \
--cc=calvin@wbinvd.org \
--cc=davem@davemloft.net \
--cc=decot@googlers.com \
--cc=edumazet@google.com \
--cc=efault@gmx.de \
--cc=jv@jvosburgh.net \
--cc=kernel-team@meta.com \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.