From: Jakub Kicinski <kuba@kernel.org>
To: achender@kernel.org
Cc: Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, pabeni@redhat.com, edumazet@google.com,
horms@kernel.org, linux-rdma@vger.kernel.org,
linux-kselftest@vger.kernel.org, shuah@kernel.org
Subject: Re: [PATCH net-next v2 3/4] selftests: rds: support RDS built as loadable modules
Date: Mon, 1 Jun 2026 19:24:46 -0700 [thread overview]
Message-ID: <20260602022446.1634495-1-kuba@kernel.org> (raw)
In-Reply-To: <20260527023423.387792-4-achender@kernel.org>
This is an AI-generated review of your patch. The human sending this
email has considered the AI review valid, or at least plausible.
---
selftests: rds: support RDS built as loadable modules
This commit removes CONFIG_MODULES=n from the rds selftest config to prevent
unrelated features from being silently dropped. It updates the configuration
check routines to accept options built as either modules or built-in, and
adds support for probing the backing modules.
> diff --git a/tools/testing/selftests/net/rds/rds_run.sh b/tools/testing/selftests/net/rds/rds_run.sh
> index ef16039be1ae5..c16b30dbdd169 100755
> --- a/tools/testing/selftests/net/rds/rds_run.sh
> +++ b/tools/testing/selftests/net/rds/rds_run.sh
[ ... ]
> @@ -93,38 +93,58 @@ check_gcov_conf()
> fi
> }
>
> +# Checks if a kconfig is enabled (set to =y or =m)
> +# $1: kconfig symbol to check
> +# $2: (optional) module name backing $1
> +# Ex: check_conf_enabled CONFIG_RDS_TCP rds_tcp
> +# Modules for configs set to =m will be probed
> +# If omitted, only a built-in (=y) config is accepted.
> +# Returns on success. exits 4 on failure
> # Kselftest framework requirement - SKIP code is 4.
> check_conf_enabled() {
> - if ! grep -x "$1=y" "$kconfig" > /dev/null 2>&1; then
> - echo "selftests: [SKIP] This test requires $1 enabled"
> - echo "Please run tools/testing/selftests/net/rds/config.sh and rebuild the kernel"
> - exit 4
> + if grep -x "$1=y" "$kconfig" > /dev/null 2>&1; then
> + return
> fi
> + if [ -n "${2:-}" ] && grep -x "$1=m" "$kconfig" > /dev/null 2>&1; then
> + probe_module "$2"
> + return
> + fi
> + echo "selftests: [SKIP] This test requires $1 enabled"
> + echo "Please run" \
> + "tools/testing/selftests/net/rds/config.sh and rebuild the kernel"
[Severity: Medium]
Should tools/testing/selftests/net/rds/config.sh also be updated to
reflect the new module support?
If a user follows these instructions to run config.sh for missing
dependencies, that script still explicitly disables CONFIG_MODULES via
scripts/config --disable CONFIG_MODULES.
Could this undermine the goal of this patch by forcefully disabling modules in
the user's kernel configuration anyway?
> + exit 4
> }
next prev parent reply other threads:[~2026-06-02 2:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 2:34 [PATCH net-next v2 0/4] selftests: rds: ROCE support follow ups Allison Henderson
2026-05-27 2:34 ` [PATCH net-next v2 1/4] selftests: rds: Rename run.sh to rds_run.sh Allison Henderson
2026-05-27 2:34 ` [PATCH net-next v2 2/4] selftests: rds: pin RDS sockets to their intended transport Allison Henderson
2026-05-27 2:34 ` [PATCH net-next v2 3/4] selftests: rds: support RDS built as loadable modules Allison Henderson
2026-06-02 2:24 ` Jakub Kicinski [this message]
2026-05-27 2:34 ` [PATCH net-next v2 4/4] selftests: rds: report missing RDMA prereqs as XFAIL Allison Henderson
2026-06-02 2:24 ` Jakub Kicinski
2026-06-02 5:04 ` Allison Henderson
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=20260602022446.1634495-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=achender@kernel.org \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-rdma@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