public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config
@ 2026-03-16 23:58 Allison Henderson
  2026-03-17 14:41 ` Paolo Abeni
  0 siblings, 1 reply; 5+ messages in thread
From: Allison Henderson @ 2026-03-16 23:58 UTC (permalink / raw)
  To: netdev
  Cc: linux-kselftest, pabeni, edumazet, rds-devel, kuba, horms,
	linux-rdma, shuah, allison.henderson

This patch adds an rds selftest config.  Also adjust the config
generation script to point to this new file

Signed-off-by: Allison Henderson <achender@kernel.org>
---
 tools/testing/selftests/net/rds/config    | 5 +++++
 tools/testing/selftests/net/rds/config.sh | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/rds/config b/tools/testing/selftests/net/rds/config
new file mode 100644
index 000000000000..103f9d941d10
--- /dev/null
+++ b/tools/testing/selftests/net/rds/config
@@ -0,0 +1,5 @@
+CONFIG_RDS=y
+CONFIG_RDS_TCP=y
+CONFIG_NET_NS=y
+CONFIG_VETH=y
+CONFIG_NET_SCH_NETEM=y
diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh
index 791c8dbe1095..7cf56ee8882f 100755
--- a/tools/testing/selftests/net/rds/config.sh
+++ b/tools/testing/selftests/net/rds/config.sh
@@ -24,7 +24,7 @@ while getopts "g" opt; do
   esac
 done
 
-CONF_FILE="tools/testing/selftests/net/config"
+CONF_FILE="tools/testing/selftests/net/rds/config"
 
 # no modules
 scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config
  2026-03-16 23:58 [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config Allison Henderson
@ 2026-03-17 14:41 ` Paolo Abeni
  2026-03-17 18:26   ` Allison Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Paolo Abeni @ 2026-03-17 14:41 UTC (permalink / raw)
  To: Allison Henderson, netdev
  Cc: linux-kselftest, edumazet, rds-devel, kuba, horms, linux-rdma,
	shuah, allison.henderson

On 3/17/26 12:58 AM, Allison Henderson wrote:
> This patch adds an rds selftest config.  

Why? what improvement produces or what issues does that address?

> diff --git a/tools/testing/selftests/net/rds/config b/tools/testing/selftests/net/rds/config
> new file mode 100644
> index 000000000000..103f9d941d10
> --- /dev/null
> +++ b/tools/testing/selftests/net/rds/config
> @@ -0,0 +1,5 @@
> +CONFIG_RDS=y
> +CONFIG_RDS_TCP=y
> +CONFIG_NET_NS=y
> +CONFIG_VETH=y
> +CONFIG_NET_SCH_NETEM=y
> diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh
> index 791c8dbe1095..7cf56ee8882f 100755
> --- a/tools/testing/selftests/net/rds/config.sh
> +++ b/tools/testing/selftests/net/rds/config.sh
> @@ -24,7 +24,7 @@ while getopts "g" opt; do
>    esac
>  done
>  
> -CONF_FILE="tools/testing/selftests/net/config"
> +CONF_FILE="tools/testing/selftests/net/rds/config"
>  
>  # no modules
>  scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES

This looks wrong?!? The script is going to update the config file which
is under git control. You probably want to copy the default config in a
tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.

The issue looks pre-existent, but since you are touching this part...

/P



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config
  2026-03-17 14:41 ` Paolo Abeni
@ 2026-03-17 18:26   ` Allison Henderson
  2026-03-17 21:54     ` Jakub Kicinski
  0 siblings, 1 reply; 5+ messages in thread
From: Allison Henderson @ 2026-03-17 18:26 UTC (permalink / raw)
  To: achender@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com
  Cc: shuah@kernel.org, rds-devel@oss.oracle.com, horms@kernel.org,
	edumazet@google.com, linux-kselftest@vger.kernel.org,
	kuba@kernel.org, linux-rdma@vger.kernel.org

On Tue, 2026-03-17 at 15:41 +0100, Paolo Abeni wrote:
> On 3/17/26 12:58 AM, Allison Henderson wrote:
> > This patch adds an rds selftest config.  
> 
> Why? what improvement produces or what issues does that address?

We've been trying to get the rds selftest to work in the ksft CI runtime and it needs a per-target config file to build
a minimal kernel with the right options enabled  
[https://lore.kernel.org/netdev/20260315175517.3c8cca92@kernel.org/](https://lore.kernel.org/netdev/20260315175517.3c8cca92@kernel.org/)

I noticed a few other selftests appear to have their own configs as well.  I can add a quick summary of the new configs
if you like?

> 
> > diff --git a/tools/testing/selftests/net/rds/config b/tools/testing/selftests/net/rds/config
> > new file mode 100644
> > index 000000000000..103f9d941d10
> > --- /dev/null
> > +++ b/tools/testing/selftests/net/rds/config
> > @@ -0,0 +1,5 @@
> > +CONFIG_RDS=y
> > +CONFIG_RDS_TCP=y
> > +CONFIG_NET_NS=y
> > +CONFIG_VETH=y
> > +CONFIG_NET_SCH_NETEM=y
> > diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh
> > index 791c8dbe1095..7cf56ee8882f 100755
> > --- a/tools/testing/selftests/net/rds/config.sh
> > +++ b/tools/testing/selftests/net/rds/config.sh
> > @@ -24,7 +24,7 @@ while getopts "g" opt; do
> >    esac
> >  done
> >  
> > -CONF_FILE="tools/testing/selftests/net/config"
> > +CONF_FILE="tools/testing/selftests/net/rds/config"
> >  
> >  # no modules
> >  scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES
> 
> This looks wrong?!? The script is going to update the config file which
> is under git control. You probably want to copy the default config in a
> tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.
> 
> The issue looks pre-existent, but since you are touching this part...
> 
> /P
> 
> 
Sure, so config.sh isnt actually called by anything within the self tests or testing harness.  It more intended to be a
stand alone tool for when developers want to enable/disable gcov.  If you like we can adjust the target to a
rds/config.local and copy rds/config there.  

CONF_FILE="tools/testing/selftests/net/rds/config.local"  
cp tools/testing/selftests/net/rds/config "$CONF_FILE"

Alternately we could simply have the script default to config.local, and add a parameter that allows the caller to
specify the config path.  Let me know what you prefer.

I may split off the config.sh changes into a separate patch so that Jakub can start using the config though.

Thanks for the reviews!  
Allison



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config
  2026-03-17 18:26   ` Allison Henderson
@ 2026-03-17 21:54     ` Jakub Kicinski
  2026-03-18  4:44       ` Allison Henderson
  0 siblings, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2026-03-17 21:54 UTC (permalink / raw)
  To: Allison Henderson
  Cc: achender@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com,
	shuah@kernel.org, rds-devel@oss.oracle.com, horms@kernel.org,
	edumazet@google.com, linux-kselftest@vger.kernel.org,
	linux-rdma@vger.kernel.org

On Tue, 17 Mar 2026 18:26:10 +0000 Allison Henderson wrote:
> On Tue, 2026-03-17 at 15:41 +0100, Paolo Abeni wrote:
> > On 3/17/26 12:58 AM, Allison Henderson wrote:  
> > > diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh
> > > index 791c8dbe1095..7cf56ee8882f 100755
> > > --- a/tools/testing/selftests/net/rds/config.sh
> > > +++ b/tools/testing/selftests/net/rds/config.sh
> > > @@ -24,7 +24,7 @@ while getopts "g" opt; do
> > >    esac
> > >  done
> > >  
> > > -CONF_FILE="tools/testing/selftests/net/config"
> > > +CONF_FILE="tools/testing/selftests/net/rds/config"
> > >  
> > >  # no modules
> > >  scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES  
> > 
> > This looks wrong?!? The script is going to update the config file which
> > is under git control. You probably want to copy the default config in a
> > tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.
> > 
> > The issue looks pre-existent, but since you are touching this part...

Well spotted.

> Sure, so config.sh isnt actually called by anything within the self
> tests or testing harness.  It more intended to be a stand alone tool
> for when developers want to enable/disable gcov.  If you like we can
> adjust the target to a rds/config.local and copy rds/config there.  
> 
> CONF_FILE="tools/testing/selftests/net/rds/config.local"  
> cp tools/testing/selftests/net/rds/config "$CONF_FILE"
> 
> Alternately we could simply have the script default to config.local,
> and add a parameter that allows the caller to specify the config
> path.  Let me know what you prefer.
> 
> I may split off the config.sh changes into a separate patch so that
> Jakub can start using the config though.

How do you actually use it? Presumably we should be modifying the config
used for build directly not a snippet.

By default scripts/config will already use .config in current directory
which should be what people would want 99% of the time?
We can add --file to the script to select the config user wants to
change but keep the default of not specifying the file hence .config?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config
  2026-03-17 21:54     ` Jakub Kicinski
@ 2026-03-18  4:44       ` Allison Henderson
  0 siblings, 0 replies; 5+ messages in thread
From: Allison Henderson @ 2026-03-18  4:44 UTC (permalink / raw)
  To: kuba@kernel.org
  Cc: linux-rdma@vger.kernel.org, linux-kselftest@vger.kernel.org,
	rds-devel@oss.oracle.com, shuah@kernel.org, pabeni@redhat.com,
	horms@kernel.org, edumazet@google.com, netdev@vger.kernel.org,
	achender@kernel.org

On Tue, 2026-03-17 at 14:54 -0700, Jakub Kicinski wrote:
> On Tue, 17 Mar 2026 18:26:10 +0000 Allison Henderson wrote:
> > On Tue, 2026-03-17 at 15:41 +0100, Paolo Abeni wrote:
> > > On 3/17/26 12:58 AM, Allison Henderson wrote:  
> > > > diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh
> > > > index 791c8dbe1095..7cf56ee8882f 100755
> > > > --- a/tools/testing/selftests/net/rds/config.sh
> > > > +++ b/tools/testing/selftests/net/rds/config.sh
> > > > @@ -24,7 +24,7 @@ while getopts "g" opt; do
> > > >    esac
> > > >  done
> > > >  
> > > > -CONF_FILE="tools/testing/selftests/net/config"
> > > > +CONF_FILE="tools/testing/selftests/net/rds/config"
> > > >  
> > > >  # no modules
> > > >  scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES  
> > > 
> > > This looks wrong?!? The script is going to update the config file which
> > > is under git control. You probably want to copy the default config in a
> > > tmp file file, edit the latter and add it to .gitignore and EXTRA_CLEAN.
> > > 
> > > The issue looks pre-existent, but since you are touching this part...
> 
> Well spotted.
> 
> > Sure, so config.sh isnt actually called by anything within the self
> > tests or testing harness.  It more intended to be a stand alone tool
> > for when developers want to enable/disable gcov.  If you like we can
> > adjust the target to a rds/config.local and copy rds/config there.  
> > 
> > CONF_FILE="tools/testing/selftests/net/rds/config.local"  
> > cp tools/testing/selftests/net/rds/config "$CONF_FILE"
> > 
> > Alternately we could simply have the script default to config.local,
> > and add a parameter that allows the caller to specify the config
> > path.  Let me know what you prefer.
> > 
> > I may split off the config.sh changes into a separate patch so that
> > Jakub can start using the config though.
> 
> How do you actually use it? 
> 
As it is, calling config.sh directly would add RDS configs to tools/testing/selftests/net/config, 
and passing the -g flag would enable gcov

> Presumably we should be modifying the config
> used for build directly not a snippet.
> 
> By default scripts/config will already use .config in current directory
> which should be what people would want 99% of the time?
> We can add --file to the script to select the config user wants to
> change but keep the default of not specifying the file hence .config?

That does sound cleaner. I'll drop the --file from the scripts/config calls so it defaults to .config, and add an
optional flag to config.sh for anyone who wants to target a different file.

Thank you for the reviews!

Allison   


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-18  4:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 23:58 [PATCH net-next v1] selftest: rds: add tools/testing/selftests/net/rds/config Allison Henderson
2026-03-17 14:41 ` Paolo Abeni
2026-03-17 18:26   ` Allison Henderson
2026-03-17 21:54     ` Jakub Kicinski
2026-03-18  4:44       ` Allison Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox