From: Matthieu Baerts <matttbe@kernel.org>
To: Breno Leitao <leitao@debian.org>,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
liuhangbin@gmail.com, petrm@nvidia.com,
Shuah Khan <shuah@kernel.org>
Cc: netdev@vger.kernel.org, "David S. Miller" <davem@davemloft.net>,
Willem de Bruijn <willemb@google.com>, David Wei <dw@davidwei.uk>,
open list <linux-kernel@vger.kernel.org>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@vger.kernel.org>
Subject: Re: [PATCH net-next v6] net: netconsole: selftests: Create a new netconsole selftest
Date: Wed, 21 Aug 2024 11:50:40 +0200 [thread overview]
Message-ID: <1a667d36-d44d-4c34-b8ef-cbc3326622fa@kernel.org> (raw)
In-Reply-To: <20240821080826.3753521-1-leitao@debian.org>
Hi Breno,
On 21/08/2024 10:08, Breno Leitao wrote:
> Adds a selftest that creates two virtual interfaces, assigns one to a
> new namespace, and assigns IP addresses to both.
>
> It listens on the destination interface using socat and configures a
> dynamic target on netconsole, pointing to the destination IP address.
>
> The test then checks if the message was received properly on the
> destination interface.
>
> Signed-off-by: Breno Leitao <leitao@debian.org>
> ---
> Changelog:
>
> v6:
> * Check for SRC and DST ip before starting the test (Jakub)
> * Revert the printk configuration at the end of the test (Jakub)
> * Fix the modprobe stderr redirection (Jakub)
Thank you for the v6! It looks good to me:
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
(...)
> diff --git a/tools/testing/selftests/drivers/net/netcons_basic.sh b/tools/testing/selftests/drivers/net/netcons_basic.sh
> new file mode 100755
> index 000000000000..b4bfb451ccb6
> --- /dev/null
> +++ b/tools/testing/selftests/drivers/net/netcons_basic.sh
> @@ -0,0 +1,234 @@
(...)
> + if ip addr list | grep -E "inet.*(${SRCIP}|${DSTIP})" 2> /dev/null; then
Out of curiosity: the DSTIP is only set in the new netns, but I guess
that will be an issue if it is also set on the host (or elsewhere with
the same MAC address), hence this check here? (In any case, it sounds
safer, it can stay)
> + echo "SKIP: IPs already in use. Skippig it" >&2
Skippig: is it because netconsole is vegetarian?
(no need for a v7 just for that of course ;) )
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2024-08-21 9:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 8:08 [PATCH net-next v6] net: netconsole: selftests: Create a new netconsole selftest Breno Leitao
2024-08-21 9:50 ` Matthieu Baerts [this message]
2024-08-21 23:52 ` Jakub Kicinski
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=1a667d36-d44d-4c34-b8ef-cbc3326622fa@kernel.org \
--to=matttbe@kernel.org \
--cc=davem@davemloft.net \
--cc=dw@davidwei.uk \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=liuhangbin@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.com \
--cc=shuah@kernel.org \
--cc=willemb@google.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).