From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: "Matthieu Baerts (NGI0)" <matttbe@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
Anil Kaushik <anilkaushikwireless@gmail.com>
Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net] selftests: net: nl_genl_mcast: unload drop_monitor if already loaded
Date: Thu, 3 Dec 2026 10:07:45 +0100 [thread overview]
Message-ID: <f47eb739-f42e-4d16-bd3a-14d7c92fdae4@6wind.com> (raw)
In-Reply-To: <20261202-net-genetlink-sft-skip-v1-1-87cb0f64d522@kernel.org>
Le 02/12/2026 à 16:41, Matthieu Baerts (NGI0) a écrit :> The bind_before_family
subtest is skipped when the NET_DM family is
> already registered.
>
> On the netdev CI, this happens each time nl_genl_mcast.py is executed
> from the same VM after drop_monitor_tests.sh, which loads the
> drop_monitor module via dwdump, and does not unload it.
>
> Instead of skipping, try to unload drop_monitor first, and only skip if
> NET_DM is still registered after that, e.g. when it is built-in or in
> use. The subtest already unloads the module at the end.
With this change, the test now unloads a drop_monitor module that was
loaded by someone else, and does not load it again afterwards. This is
fine on NIPA, but on a developer machine where drop_monitor was loaded on
purpose, the test leaves the system in a different state. Would it be
worth loading it again at the end when it was registered before the
test? If not, maybe the commit log could say that this is acceptable.
Anyway, the fix LGTM:
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Regards,
Nicolas
prev parent reply other threads:[~2026-12-03 9:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 15:41 [PATCH net] selftests: net: nl_genl_mcast: unload drop_monitor if already loaded Matthieu Baerts (NGI0)
2026-12-03 9:07 ` Nicolas Dichtel [this message]
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=f47eb739-f42e-4d16-bd3a-14d7c92fdae4@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=anilkaushikwireless@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=matttbe@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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