From: Jakub Kicinski <kuba@kernel.org>
To: Petr Machata <petrm@nvidia.com>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>,
<edumazet@google.com>, <pabeni@redhat.com>,
<andrew+netdev@lunn.ch>, <horms@kernel.org>,
<danieller@nvidia.com>, <shuah@kernel.org>,
<linux-kselftest@vger.kernel.org>
Subject: Re: [PATCH net-next] selftests: drv-net: hide the devlink port_split test
Date: Mon, 10 Aug 2026 11:13:22 -0700 [thread overview]
Message-ID: <20260810111322.20341a39@kernel.org> (raw)
In-Reply-To: <87jypy9qy7.fsf@pmachata.org>
On Mon, 10 Aug 2026 13:04:48 +0200 Petr Machata wrote:
> > The devlink port_split test has limited applicability.
> > NICs (as opposed to switches) require at least a re-probe
> > to apply the split configuration.
>
> Interesting, apparently some NICs require reboot after devlink port
> split. Hmm, should I just move the test to drivers/mlxsw?
It's not really mlxsw specific in any way :S
The cmode + NETIF compatibility would be my long term preference.
> > On top of that the test is not compatible with our driver env,
> > it just splits all ports on the system, not only what NETIF
> > points at.
> >
> > Long term we may want to add some indication in devlink whether
> > the port splitting is runtime (cmode of sorts), and fix the
> > test to follow driver env. But since no (known) NIC driver can
> > support runtime anyway let's just hide the test from the selftest
> > framework by moving it to extra files.
>
> Sure, go for it.
>
> > Having this test randomly break unrelated NICs within the DUT
> > makes people implement allow-lists for ksft, which then means
> > their setups don't run new tests.
>
> So I'm fine with the patch, but I don't buy this argument. People
> presumably understand that allow-listing implies that only the, well,
> allowed tests will be run.
One note here - that's a fine position to take for downstream CIs.
But upstream / in NIPA we want to test the drivers as much as we want
to test the tests. It's _very_ useful during review to see how well
the test works across the runners before merging. So allowlists are
explicitly a no-no for NIPA reporting.
> Presumably there was a history of new stuff
> blowing up, or gradual enablement or whatever, otherwise why not just
> blacklist the one problematic one? I.e. don't blame the existence of
> allow-lists on devlink_port_split.
IIRC Intel devs mentioned port split as problematic explicitly.
I also had issues with it in NIPA.
But fair point, maybe once the auto-neg / link config tests appear
upstream this will be more prevalent problem. For now devlink port
split is the only one.. let's just squirrel it away.
> Reviewed-by: Petr Machata <petrm@nvidia.com>
Thanks! I may need to respin and use PROGS_EXTENDED as AI suggests.
prev parent reply other threads:[~2026-08-10 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-08 16:48 [PATCH net-next] selftests: drv-net: hide the devlink port_split test Jakub Kicinski
2026-08-10 11:04 ` Petr Machata
2026-08-10 18:13 ` Jakub Kicinski [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=20260810111322.20341a39@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=danieller@nvidia.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.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.