From: Leon Romanovsky <leon@kernel.org>
To: Chenguang Zhao <zhaochenguang@kylinos.cn>
Cc: Shuah Khan <shuah@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kselftest@vger.kernel.org,
RDMA mailing list <linux-rdma@vger.kernel.org>
Subject: Re: [PATCH] selftests: net: add RDMA CM observability and regression scripts
Date: Thu, 23 Apr 2026 13:19:24 +0300 [thread overview]
Message-ID: <20260423101924.GB172828@unreal> (raw)
In-Reply-To: <20260416062224.1546388-1-zhaochenguang@kylinos.cn>
On Thu, Apr 16, 2026 at 02:22:24PM +0800, Chenguang Zhao wrote:
> Add a minimal RDMA CM selftest suite that captures observability
> baselines and runs trace, counter-delta, and fault-injection oriented
> checks, plus a review-loop helper for repeated validation rounds.
>
> Usage (client side):
> - export
> CM_WORKLOAD_CMD='ib_send_bw -d <dev> -i <port> -R -g <gid> <server_ip>'
> (User can customize CM_WORKLOAD_CMD)
> - sudo -E make -C tools/testing/selftests
> TARGETS=drivers/net/rdma run_tests
>
> Signed-off-by: Chenguang Zhao <zhaochenguang@kylinos.cn>
> ---
> The first patch adds a focused RDMA CM selftest suite under
> kselftest to make CM behavior easier to observe and validate
> in routine regression runs.
>
> It introduces baseline collection, trace-sequence checks,
> counter-delta checks, and failslab-based recovery checks, plus
> a review-loop script for one-shot serial execution. It also
> registers drivers/net/rdma in the top-level selftests TARGETS,
> so the suite runs through standard kselftest flow
> (make ... TARGETS=drivers/net/rdma run_tests) instead of requiring
> manual script-by-script execution.
> ---
> tools/testing/selftests/Makefile | 1 +
> .../selftests/drivers/net/rdma/Makefile | 13 ++
> .../selftests/drivers/net/rdma/README.md | 168 ++++++++++++++++++
> .../drivers/net/rdma/rdma_cm_baseline.sh | 58 ++++++
> .../drivers/net/rdma/rdma_cm_counter_delta.sh | 72 ++++++++
> .../net/rdma/rdma_cm_fault_injection.sh | 95 ++++++++++
> .../drivers/net/rdma/rdma_cm_review_loop.sh | 35 ++++
> .../net/rdma/rdma_cm_trace_sequence.sh | 83 +++++++++
> .../selftests/drivers/net/rdma/rdma_common.sh | 126 +++++++++++++
> 9 files changed, 651 insertions(+)
> create mode 100644 tools/testing/selftests/drivers/net/rdma/Makefile
> create mode 100644 tools/testing/selftests/drivers/net/rdma/README.md
> create mode 100755 tools/testing/selftests/drivers/net/rdma/rdma_cm_baseline.sh
> create mode 100755 tools/testing/selftests/drivers/net/rdma/rdma_cm_counter_delta.sh
> create mode 100755 tools/testing/selftests/drivers/net/rdma/rdma_cm_fault_injection.sh
> create mode 100755 tools/testing/selftests/drivers/net/rdma/rdma_cm_review_loop.sh
> create mode 100755 tools/testing/selftests/drivers/net/rdma/rdma_cm_trace_sequence.sh
> create mode 100755 tools/testing/selftests/drivers/net/rdma/rdma_common.sh
>
> diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile
> index 984abb6d42ab..0df7034f46b2 100644
> --- a/tools/testing/selftests/Makefile
> +++ b/tools/testing/selftests/Makefile
> @@ -22,6 +22,7 @@ TARGETS += drivers/ntsync
> TARGETS += drivers/s390x/uvdevice
> TARGETS += drivers/net
> TARGETS += drivers/net/bonding
> +TARGETS += drivers/net/rdma
It is very wrong place to put RDMA functionality.
We have tools/testing/selftests/rdma folder for that.
Thanks
prev parent reply other threads:[~2026-04-23 10:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-16 6:22 [PATCH] selftests: net: add RDMA CM observability and regression scripts Chenguang Zhao
2026-04-23 10:19 ` Leon Romanovsky [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=20260423101924.GB172828@unreal \
--to=leon@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@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 \
--cc=zhaochenguang@kylinos.cn \
/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