Netdev List
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: Aaron Conole <aconole@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>,
	netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Eelco Chaudron <echaudro@redhat.com>,
	Ilya Maximets <i.maximets@ovn.org>,
	dev@openvswitch.org
Subject: Re: [PATCH net 2/7] selftests: openvswitch: add config file
Date: Mon, 20 Jul 2026 17:24:45 +0200	[thread overview]
Message-ID: <d6b07d51-7026-4759-bb99-a3bf3b9560af@kernel.org> (raw)
In-Reply-To: <f7t7bmppvpu.fsf@redhat.com>

On 20/07/2026 16:43, Aaron Conole wrote:
> Matthieu Baerts <matttbe@kernel.org> writes:
> 
>> Hi Aaron,
>>
>> Thank you for the review!
>>
>> On 16/07/2026 22:00, Aaron Conole wrote:
>>> Aaron Conole <aconole@redhat.com> writes:
>>>> "Matthieu Baerts (NGI0)" <matttbe@kernel.org> writes:
>>>>
>>>>> The kselftests doc mentions that a config file should be present "if a
>>>>> test needs specific kernel config options enabled". This selftest
>>>>> requires some kernel config, but no config file was provided.
>>>>>
>>>>> We could say that a sub-target could use the parent's config file, but
>>>>> the kselftests doc doesn't mention anything about that. Plus the
>>>>> net/openvswitch target is the only net target without a config file.
>>>>
>>>> We've been operating on that assumption from the openvswitch side, but
>>>> it's true that isn't explicitly documented anywhere, and I guess it
>>>> isn't officially supported in the kselftest framework.  I guess we'll
>>>> need to keep updating this config as we add tests for things like SCTP,
>>>> and others, and maybe that's a good thing like we can add a comment
>>>> describing which tests take which configs.
>>>>
>>>> The downside is for most of the OVS testing we use the NIPA scripts
>>>> and those 'inherit' the parent config, so it would be a change on our
>>>> side from the development standpoint (but probably something we should
>>>> have been doing from the beginning).
>>>>
>>>> That said, would it be worth also exploring the 'cascading
>>>> configuration' support?  It seems like a useful feature, but maybe it
>>>> should be a separate discussion.  I ask because of how OVS interacts
>>>> with the networking stack as an 'alternative bridge' so-to-speak, I do
>>>> worry about having to duplicate lots of configurations between the two
>>>> as we expand the test coverage on OVS side.
>>
>> It is not clear to me what you are using on your side, but I guess it
>> should be doable to modify some scripts to merge this new config file
>> and the net one in your case.
> 
> This doesn't seem to break the NIPA case (at least I can see the
> 'contest test' output is not SKIP, but PASS for the openvswitch.sh).

Note that currently, the net/openvswitch target on NIPA is executed on
the same runner as the net one. In other words, the config files are
merged, so at the end, my patch shouldn't change anything with the way
NIPA is currently deployed (but that could change).

> I'm not sure about the suggestion to change the script in
> tools/testing/selftests/net/openvswitch/openvswitch.sh to do a config
> merge.  It isn't out-of-tree or anything, and seems like that would
> create confusing git state (and not desirable from my end) - the
> upstream test would leave a modified, tracked file.  Was that your
> suggestion?  Or do you mean NIPA itself (but I think it already just
> uses the top-level config).

No, sorry, I thought my modification would have caused issues with other
tests on your side. Good to hear it is not.

> The config change itself looks fine to me.

Thank you!

>>>>> Here is a new config file, which is a trimmed version of the net one,
>>>>> with hopefully the minimal required kconfig on top of 'make defconfig'.
>>>>
>>>> Should this also remove the OVS configs from the upper level since there
>>>> shouldn't be OVS tests executing there (ie: CONFIG_OPENVSWITCH*)?
>>>
>>> Actually, forget this part.  The P-MTU tests in pmtu.sh use ovs to
>>> create a datapath through OVS.  So these configurations need to stay at
>>> the top level as well.
>>
>> Indeed. I don't know these tests well, but maybe this P-MTU selftest
>> should move to the net/openvswitch target?
> 
> Well, it is testing path MTU across multiple topologies, so it isn't
> really an openvswitch specific test.  Just one that happens to use
> openvswitch in one of the test cases.

OK, it is fine there then.

Note that the openvswitch test could also be moved to the 'net' one. It
looks like the sub-targets are often created when there are multiple
tests linked to one sub-subsystem, and also because the 'net' config is
quite big, and it takes time to compile all that. But I'm not pushing
for one or the other, I just wanted to be able to build all targets in
small containers :)

Cheers,
Matt

  reply	other threads:[~2026-07-20 15:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10 18:04 [PATCH net 0/7] selftests: net: add missing kconfig and settings Matthieu Baerts (NGI0)
2026-07-10 18:04 ` [PATCH net 1/7] selftests: af_unix: add USER_NS config Matthieu Baerts (NGI0)
2026-07-10 18:51   ` Kuniyuki Iwashima
2026-07-10 18:04 ` [PATCH net 2/7] selftests: openvswitch: add config file Matthieu Baerts (NGI0)
2026-07-16  8:15   ` Eelco Chaudron
2026-07-17  9:39     ` Matthieu Baerts
2026-07-16 15:38   ` Aaron Conole
2026-07-16 20:00     ` Aaron Conole
2026-07-17  9:39       ` Matthieu Baerts
2026-07-20 14:43         ` Aaron Conole
2026-07-20 15:24           ` Matthieu Baerts [this message]
2026-07-10 18:04 ` [PATCH net 3/7] selftests: ovpn: add IPV6 and VETH configs Matthieu Baerts (NGI0)
2026-07-13 11:42   ` Antonio Quartulli
2026-07-10 18:04 ` [PATCH net 4/7] selftests: ovpn: increase timeout Matthieu Baerts (NGI0)
2026-07-13 11:44   ` Antonio Quartulli
2026-07-10 18:04 ` [PATCH net 5/7] selftests: drv-net: " Matthieu Baerts (NGI0)
2026-07-10 18:04 ` [PATCH net 6/7] selftests: drv-net: add missing kconfig for psp.py Matthieu Baerts (NGI0)
2026-07-10 21:26   ` Wei Wang
2026-07-10 18:04 ` [PATCH net 7/7] selftests: netconsole: ignore busywait errors Matthieu Baerts (NGI0)
2026-07-13 10:41   ` Breno Leitao

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=d6b07d51-7026-4759-bb99-a3bf3b9560af@kernel.org \
    --to=matttbe@kernel.org \
    --cc=aconole@redhat.com \
    --cc=davem@davemloft.net \
    --cc=dev@openvswitch.org \
    --cc=echaudro@redhat.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=i.maximets@ovn.org \
    --cc=kuba@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox