* [PATCH net-next v2 0/2] selftests: rds: add config file and config.sh -c option @ 2026-03-19 0:46 Allison Henderson 2026-03-19 0:46 ` [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config Allison Henderson 2026-03-19 0:46 ` [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh Allison Henderson 0 siblings, 2 replies; 11+ messages in thread From: Allison Henderson @ 2026-03-19 0:46 UTC (permalink / raw) To: netdev Cc: linux-kselftest, pabeni, edumazet, rds-devel, kuba, horms, linux-rdma, allison.henderson This series adds an RDS-specific config file for ksft CI and extends config.sh with a -c flag to specify an alternate config file path. Users can now specify the path of the config they want to update, or default to .config if none is specified. Allison Henderson (2): selftests: rds: add tools/testing/selftests/net/rds/config selftests: rds: Add -c config option to rds/config.sh tools/testing/selftests/net/rds/Makefile | 1 + tools/testing/selftests/net/rds/config | 5 +++ tools/testing/selftests/net/rds/config.sh | 37 ++++++++++++++--------- 3 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 tools/testing/selftests/net/rds/config -- 2.43.0 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config 2026-03-19 0:46 [PATCH net-next v2 0/2] selftests: rds: add config file and config.sh -c option Allison Henderson @ 2026-03-19 0:46 ` Allison Henderson 2026-03-19 23:54 ` Jakub Kicinski 2026-03-19 0:46 ` [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh Allison Henderson 1 sibling, 1 reply; 11+ messages in thread From: Allison Henderson @ 2026-03-19 0:46 UTC (permalink / raw) To: netdev Cc: linux-kselftest, pabeni, edumazet, rds-devel, kuba, horms, linux-rdma, allison.henderson The ksft CI runtime needs an rds specific config file to build a minimal kernel with the right options enabled. This patch adds an rds selftest config containing the required CONFIG_RDS* and CONFIG_NET_* options. Signed-off-by: Allison Henderson <achender@kernel.org> --- tools/testing/selftests/net/rds/Makefile | 1 + tools/testing/selftests/net/rds/config | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/rds/Makefile b/tools/testing/selftests/net/rds/Makefile index fe363be8e358..3eb0f633fd73 100644 --- a/tools/testing/selftests/net/rds/Makefile +++ b/tools/testing/selftests/net/rds/Makefile @@ -9,6 +9,7 @@ TEST_FILES := \ include.sh \ settings \ test.py \ + config \ # end of TEST_FILES EXTRA_CLEAN := \ 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 -- 2.43.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config 2026-03-19 0:46 ` [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config Allison Henderson @ 2026-03-19 23:54 ` Jakub Kicinski 2026-03-19 23:55 ` Jakub Kicinski 0 siblings, 1 reply; 11+ messages in thread From: Jakub Kicinski @ 2026-03-19 23:54 UTC (permalink / raw) To: Allison Henderson Cc: netdev, linux-kselftest, pabeni, edumazet, rds-devel, horms, linux-rdma, allison.henderson On Wed, 18 Mar 2026 17:46:17 -0700 Allison Henderson wrote: > --- a/tools/testing/selftests/net/rds/Makefile > +++ b/tools/testing/selftests/net/rds/Makefile > @@ -9,6 +9,7 @@ TEST_FILES := \ > include.sh \ > settings \ > test.py \ > + config \ > # end of TEST_FILES > > EXTRA_CLEAN := \ > 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 Contents of both these files need to be sorted according to the whims of these scripts: selftests: rds: add config file and config.sh -c option ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config 2026-03-19 23:54 ` Jakub Kicinski @ 2026-03-19 23:55 ` Jakub Kicinski 2026-03-20 3:06 ` Allison Henderson 0 siblings, 1 reply; 11+ messages in thread From: Jakub Kicinski @ 2026-03-19 23:55 UTC (permalink / raw) To: Allison Henderson Cc: netdev, linux-kselftest, pabeni, edumazet, rds-devel, horms, linux-rdma, allison.henderson On Thu, 19 Mar 2026 16:54:35 -0700 Jakub Kicinski wrote: > Contents of both these files need to be sorted according to the whims > of these scripts: > selftests: rds: add config file and config.sh -c option paste fail, I meant this: https://github.com/linux-netdev/nipa/tree/main/tests/patch/check_selftest ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config 2026-03-19 23:55 ` Jakub Kicinski @ 2026-03-20 3:06 ` Allison Henderson 0 siblings, 0 replies; 11+ messages in thread From: Allison Henderson @ 2026-03-20 3:06 UTC (permalink / raw) To: kuba@kernel.org, achender@kernel.org Cc: linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, horms@kernel.org, edumazet@google.com, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, pabeni@redhat.com On Thu, 2026-03-19 at 16:55 -0700, Jakub Kicinski wrote: > On Thu, 19 Mar 2026 16:54:35 -0700 Jakub Kicinski wrote: > > Contents of both these files need to be sorted according to the whims > > of these scripts: > > selftests: rds: add config file and config.sh -c option > > paste fail, I meant this: > https://urldefense.com/v3/__https://github.com/linux-netdev/nipa/tree/main/tests/patch/check_selftest__;!!ACWV5N9M2RV99hQ!M3jZzuv3BDBCuz_YVyrkry1kfdvR-eqR0z6RnvQ1mauMbfZsiNUgqGbMZXP9s8BvDqADJA7OSaWddlO4XA$ Ok, I will take a look at those. Thank you! Allison ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh 2026-03-19 0:46 [PATCH net-next v2 0/2] selftests: rds: add config file and config.sh -c option Allison Henderson 2026-03-19 0:46 ` [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config Allison Henderson @ 2026-03-19 0:46 ` Allison Henderson 2026-03-19 20:13 ` [net-next,v2,2/2] " Simon Horman 2026-03-19 20:16 ` [PATCH net-next v2 2/2] " Simon Horman 1 sibling, 2 replies; 11+ messages in thread From: Allison Henderson @ 2026-03-19 0:46 UTC (permalink / raw) To: netdev Cc: linux-kselftest, pabeni, edumazet, rds-devel, kuba, horms, linux-rdma, allison.henderson This patch adds a new -c flag to config.sh that enables callers to specify the file path of the config they would like to update. If no config is specified, the default will be the .config of the current directory. Signed-off-by: Allison Henderson <achender@kernel.org> --- tools/testing/selftests/net/rds/config.sh | 37 ++++++++++++++--------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh index 791c8dbe1095..e7a619d7cff0 100755 --- a/tools/testing/selftests/net/rds/config.sh +++ b/tools/testing/selftests/net/rds/config.sh @@ -6,15 +6,20 @@ set -u set -x unset KBUILD_OUTPUT +CONF_FILE="" +FLAGS="" GENERATE_GCOV_REPORT=0 -while getopts "g" opt; do +while getopts "gc:" opt; do case ${opt} in g) GENERATE_GCOV_REPORT=1 ;; + c) + CONF_FILE=$OPTARG + ;; :) - echo "USAGE: config.sh [-g]" + echo "USAGE: config.sh [-g] [-c config]" exit 1 ;; ?) @@ -24,30 +29,32 @@ while getopts "g" opt; do esac done -CONF_FILE="tools/testing/selftests/net/config" +if [[ "$CONF_FILE" != "" ]]; then + FLAGS="--file $CONF_FILE" +fi # no modules -scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES +scripts/config $FLAGS --disable CONFIG_MODULES # enable RDS -scripts/config --file "$CONF_FILE" --enable CONFIG_RDS -scripts/config --file "$CONF_FILE" --enable CONFIG_RDS_TCP +scripts/config $FLAGS --enable CONFIG_RDS +scripts/config $FLAGS --enable CONFIG_RDS_TCP if [ "$GENERATE_GCOV_REPORT" -eq 1 ]; then # instrument RDS and only RDS - scripts/config --file "$CONF_FILE" --enable CONFIG_GCOV_KERNEL - scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_ALL - scripts/config --file "$CONF_FILE" --enable GCOV_PROFILE_RDS + scripts/config $FLAGS --enable CONFIG_GCOV_KERNEL + scripts/config $FLAGS --disable GCOV_PROFILE_ALL + scripts/config $FLAGS --enable GCOV_PROFILE_RDS else - scripts/config --file "$CONF_FILE" --disable CONFIG_GCOV_KERNEL - scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_ALL - scripts/config --file "$CONF_FILE" --disable GCOV_PROFILE_RDS + scripts/config $FLAGS --disable CONFIG_GCOV_KERNEL + scripts/config $FLAGS --disable GCOV_PROFILE_ALL + scripts/config $FLAGS --disable GCOV_PROFILE_RDS fi # need network namespaces to run tests with veth network interfaces -scripts/config --file "$CONF_FILE" --enable CONFIG_NET_NS -scripts/config --file "$CONF_FILE" --enable CONFIG_VETH +scripts/config $FLAGS --enable CONFIG_NET_NS +scripts/config $FLAGS --enable CONFIG_VETH # simulate packet loss -scripts/config --file "$CONF_FILE" --enable CONFIG_NET_SCH_NETEM +scripts/config $FLAGS --enable CONFIG_NET_SCH_NETEM -- 2.43.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [net-next,v2,2/2] selftests: rds: Add -c config option to rds/config.sh 2026-03-19 0:46 ` [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh Allison Henderson @ 2026-03-19 20:13 ` Simon Horman 2026-03-20 3:05 ` Allison Henderson 2026-03-19 20:16 ` [PATCH net-next v2 2/2] " Simon Horman 1 sibling, 1 reply; 11+ messages in thread From: Simon Horman @ 2026-03-19 20:13 UTC (permalink / raw) To: achender Cc: Simon Horman, kuba, rds-devel, linux-rdma, pabeni, linux-kselftest, allison.henderson, edumazet, netdev This is an AI-generated review of your patch. The human sending this email has considered the AI review valid, or at least plausible. For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html --- selftests: rds: Add -c config option to rds/config.sh This patch adds a new -c flag to config.sh that enables callers to specify the file path of the config they would like to update. If no config is specified, the default will be the .config of the current directory. > diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh > index 791c8dbe1095..e7a619d7cff0 100755 > --- a/tools/testing/selftests/net/rds/config.sh > +++ b/tools/testing/selftests/net/rds/config.sh > @@ -6,15 +6,20 @@ set -u > set -x > > unset KBUILD_OUTPUT > +CONF_FILE="" > +FLAGS="" > > GENERATE_GCOV_REPORT=0 > -while getopts "g" opt; do > +while getopts "gc:" opt; do > case ${opt} in > g) > GENERATE_GCOV_REPORT=1 > ;; > + c) > + CONF_FILE=$OPTARG > + ;; > :) > - echo "USAGE: config.sh [-g]" > + echo "USAGE: config.sh [-g] [-c config]" > exit 1 > ;; > ?) > @@ -24,30 +29,32 @@ while getopts "g" opt; do > esac > done > > -CONF_FILE="tools/testing/selftests/net/config" > +if [[ "$CONF_FILE" != "" ]]; then > + FLAGS="--file $CONF_FILE" > +fi This changes the default behavior - config.sh now modifies .config in the current directory when no -c option is provided, but the README.txt wasn't updated. Looking at README.txt: # Create a suitable gcov enabled .config tools/testing/selftests/net/rds/config.sh -g # Alternatly create a gcov disabled .config tools/testing/selftests/net/rds/config.sh # build the kernel vng --build --config tools/testing/selftests/net/config Won't this workflow break? The old config.sh modified tools/testing/selftests/net/config, but the new version modifies .config. When following the README, config.sh now modifies .config, but vng builds using the unmodified tools/testing/selftests/net/config, so the kernel would be built with incorrect configuration (CONFIG_RDS, CONFIG_RDS_TCP, CONFIG_NET_NS, CONFIG_VETH, CONFIG_NET_SCH_NETEM may not be properly enabled, and CONFIG_MODULES may not be disabled). Should the README examples be updated to either use "-c tools/testing/selftests/net/config" or adjust the vng command to use ".config"? Alternatively, for backward compatibility, the default could remain tools/testing/selftests/net/config and require "-c .config" for the new behavior. > > # no modules > -scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES > +scripts/config $FLAGS --disable CONFIG_MODULES [ ... ] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [net-next,v2,2/2] selftests: rds: Add -c config option to rds/config.sh 2026-03-19 20:13 ` [net-next,v2,2/2] " Simon Horman @ 2026-03-20 3:05 ` Allison Henderson 2026-03-20 8:26 ` Simon Horman 0 siblings, 1 reply; 11+ messages in thread From: Allison Henderson @ 2026-03-20 3:05 UTC (permalink / raw) To: horms@kernel.org, achender@kernel.org Cc: rds-devel@oss.oracle.com, netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, linux-rdma@vger.kernel.org, pabeni@redhat.com, linux-kselftest@vger.kernel.org On Thu, 2026-03-19 at 20:13 +0000, Simon Horman wrote: > This is an AI-generated review of your patch. The human sending this > email has considered the AI review valid, or at least plausible. Alrighty, I will update the README. Thank you! Allison > > For local reproduction steps see https://urldefense.com/v3/__https://netdev-ai.bots.linux.dev/ai-local.html__;!!ACWV5N9M2RV99hQ!Nwy4iPSdRAP7B5dpWucPIupDV2txt0qJKgmHbXVPdiBg3MuD4r9odJvbg8VWDf84sQ-oj8P8yeDHPNh5nVU$ > --- > selftests: rds: Add -c config option to rds/config.sh > > This patch adds a new -c flag to config.sh that enables callers to specify > the file path of the config they would like to update. If no config is > specified, the default will be the .config of the current directory. > > > diff --git a/tools/testing/selftests/net/rds/config.sh b/tools/testing/selftests/net/rds/config.sh > > index 791c8dbe1095..e7a619d7cff0 100755 > > --- a/tools/testing/selftests/net/rds/config.sh > > +++ b/tools/testing/selftests/net/rds/config.sh > > @@ -6,15 +6,20 @@ set -u > > set -x > > > > unset KBUILD_OUTPUT > > +CONF_FILE="" > > +FLAGS="" > > > > GENERATE_GCOV_REPORT=0 > > -while getopts "g" opt; do > > +while getopts "gc:" opt; do > > case ${opt} in > > g) > > GENERATE_GCOV_REPORT=1 > > ;; > > + c) > > + CONF_FILE=$OPTARG > > + ;; > > :) > > - echo "USAGE: config.sh [-g]" > > + echo "USAGE: config.sh [-g] [-c config]" > > exit 1 > > ;; > > ?) > > @@ -24,30 +29,32 @@ while getopts "g" opt; do > > esac > > done > > > > -CONF_FILE="tools/testing/selftests/net/config" > > +if [[ "$CONF_FILE" != "" ]]; then > > + FLAGS="--file $CONF_FILE" > > +fi > > This changes the default behavior - config.sh now modifies .config in the > current directory when no -c option is provided, but the README.txt wasn't > updated. Looking at README.txt: > > # Create a suitable gcov enabled .config > tools/testing/selftests/net/rds/config.sh -g > > # Alternatly create a gcov disabled .config > tools/testing/selftests/net/rds/config.sh > > # build the kernel > vng --build --config tools/testing/selftests/net/config > > Won't this workflow break? The old config.sh modified > tools/testing/selftests/net/config, but the new version modifies .config. > When following the README, config.sh now modifies .config, but vng builds > using the unmodified tools/testing/selftests/net/config, so the kernel > would be built with incorrect configuration (CONFIG_RDS, CONFIG_RDS_TCP, > CONFIG_NET_NS, CONFIG_VETH, CONFIG_NET_SCH_NETEM may not be properly > enabled, and CONFIG_MODULES may not be disabled). > > Should the README examples be updated to either use > "-c tools/testing/selftests/net/config" or adjust the vng command to use > ".config"? > > Alternatively, for backward compatibility, the default could remain > tools/testing/selftests/net/config and require "-c .config" for the new > behavior. > > > > > # no modules > > -scripts/config --file "$CONF_FILE" --disable CONFIG_MODULES > > +scripts/config $FLAGS --disable CONFIG_MODULES > > [ ... ] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [net-next,v2,2/2] selftests: rds: Add -c config option to rds/config.sh 2026-03-20 3:05 ` Allison Henderson @ 2026-03-20 8:26 ` Simon Horman 0 siblings, 0 replies; 11+ messages in thread From: Simon Horman @ 2026-03-20 8:26 UTC (permalink / raw) To: Allison Henderson Cc: achender@kernel.org, rds-devel@oss.oracle.com, netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, linux-rdma@vger.kernel.org, pabeni@redhat.com, linux-kselftest@vger.kernel.org On Fri, Mar 20, 2026 at 03:05:22AM +0000, Allison Henderson wrote: > On Thu, 2026-03-19 at 20:13 +0000, Simon Horman wrote: > > This is an AI-generated review of your patch. The human sending this > > email has considered the AI review valid, or at least plausible. > Alrighty, I will update the README. Thank you! Thanks. FWIIW, I do agree the code changes here in v2 are in line with the discussion around v1. ... ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh 2026-03-19 0:46 ` [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh Allison Henderson 2026-03-19 20:13 ` [net-next,v2,2/2] " Simon Horman @ 2026-03-19 20:16 ` Simon Horman 2026-03-20 3:06 ` Allison Henderson 1 sibling, 1 reply; 11+ messages in thread From: Simon Horman @ 2026-03-19 20:16 UTC (permalink / raw) To: Allison Henderson Cc: netdev, linux-kselftest, pabeni, edumazet, rds-devel, kuba, linux-rdma, allison.henderson On Wed, Mar 18, 2026 at 05:46:18PM -0700, Allison Henderson wrote: > This patch adds a new -c flag to config.sh that enables callers > to specify the file path of the config they would like to update. > If no config is specified, the default will be the .config of the > current directory. > > Signed-off-by: Allison Henderson <achender@kernel.org> Hi Allison, Shell checks complains about unquoted variables (SC2086) in this patch. As the script was previously shellcheck clean it would be nice to keep it that way. ... ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh 2026-03-19 20:16 ` [PATCH net-next v2 2/2] " Simon Horman @ 2026-03-20 3:06 ` Allison Henderson 0 siblings, 0 replies; 11+ messages in thread From: Allison Henderson @ 2026-03-20 3:06 UTC (permalink / raw) To: horms@kernel.org, achender@kernel.org Cc: linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, edumazet@google.com, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, pabeni@redhat.com, kuba@kernel.org On Thu, 2026-03-19 at 20:16 +0000, Simon Horman wrote: > On Wed, Mar 18, 2026 at 05:46:18PM -0700, Allison Henderson wrote: > > This patch adds a new -c flag to config.sh that enables callers > > to specify the file path of the config they would like to update. > > If no config is specified, the default will be the .config of the > > current directory. > > > > Signed-off-by: Allison Henderson <achender@kernel.org> > > Hi Allison, > > Shell checks complains about unquoted variables (SC2086) in this patch. > As the script was previously shellcheck clean it would be nice > to keep it that way. Ok, I will fix those then. Thank you! Allison > > ... ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-03-20 8:26 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-03-19 0:46 [PATCH net-next v2 0/2] selftests: rds: add config file and config.sh -c option Allison Henderson 2026-03-19 0:46 ` [PATCH net-next v2 1/2] selftests: rds: add tools/testing/selftests/net/rds/config Allison Henderson 2026-03-19 23:54 ` Jakub Kicinski 2026-03-19 23:55 ` Jakub Kicinski 2026-03-20 3:06 ` Allison Henderson 2026-03-19 0:46 ` [PATCH net-next v2 2/2] selftests: rds: Add -c config option to rds/config.sh Allison Henderson 2026-03-19 20:13 ` [net-next,v2,2/2] " Simon Horman 2026-03-20 3:05 ` Allison Henderson 2026-03-20 8:26 ` Simon Horman 2026-03-19 20:16 ` [PATCH net-next v2 2/2] " Simon Horman 2026-03-20 3:06 ` Allison Henderson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox