public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
From: cel@kernel.org
To: <kdevops@lists.linux.dev>
Cc: Chuck Lever <chuck.lever@oracle.com>, Zhu Yanjun <zyjzyj2000@gmail.com>
Subject: [PATCH 3/4] Kconfig: Add support for testing RDMA with software RoCE
Date: Mon,  3 Jun 2024 12:06:57 -0400	[thread overview]
Message-ID: <20240603160658.4073204-4-cel@kernel.org> (raw)
In-Reply-To: <20240603160658.4073204-1-cel@kernel.org>

From: Chuck Lever <chuck.lever@oracle.com>

Add kdevops config option to use rxe rather than siw for RDMA. rxe
is the kernel's software RoCE driver, and like siw, it utilizes a
standard Ethernet device.

Suggested-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
 kconfigs/Kconfig.bringup.goals | 10 ++++++++++
 scripts/rdma.Makefile          | 12 ++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/kconfigs/Kconfig.bringup.goals b/kconfigs/Kconfig.bringup.goals
index e8629ebea5e0..794742530e9e 100644
--- a/kconfigs/Kconfig.bringup.goals
+++ b/kconfigs/Kconfig.bringup.goals
@@ -100,6 +100,16 @@ config KDEVOPS_SETUP_RDMA_SIW
 	  To use this device driver, enable the CONFIG_RDMA_SIW
 	  option in your test kernels.
 
+config KDEVOPS_SETUP_RDMA_RXE
+	bool "rxe"
+	help
+	  Provision software-emulated RDMA on target nodes via the
+	  kernel rxe.ko driver. rxe can be used with any standard
+	  Ethernet device, including virtio-net devices.
+
+	  To use this device driver, enable the CONFIG_RDMA_RXE
+	  option in your test kernels.
+
 endchoice
 
 config KDEVOPS_SETUP_KTLS
diff --git a/scripts/rdma.Makefile b/scripts/rdma.Makefile
index d7cdf0062638..dd2a70120eb2 100644
--- a/scripts/rdma.Makefile
+++ b/scripts/rdma.Makefile
@@ -9,3 +9,15 @@ KDEVOPS_BRING_UP_DEPS += siw
 PHONY += siw
 
 endif
+
+ifeq (y,$(CONFIG_KDEVOPS_SETUP_RDMA_RXE))
+
+rxe:
+	$(Q)ansible-playbook $(ANSIBLE_VERBOSE) --extra-vars=@./extra_vars.yaml \
+		-f 30 -i hosts playbooks/rxe.yml
+
+KDEVOPS_BRING_UP_DEPS += rxe
+
+PHONY += rxe
+
+endif
-- 
2.45.1


  parent reply	other threads:[~2024-06-03 16:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03 16:06 [PATCH 0/4] Add rxe as a second software RDMA option cel
2024-06-03 16:06 ` [PATCH 1/4] bringup.goals: Make siw settings more generic cel
2024-06-03 16:06 ` [PATCH 2/4] playbooks: Add a playbook to set up rxe on target nodes cel
2024-06-03 16:06 ` cel [this message]
2024-06-03 16:54   ` [PATCH 3/4] Kconfig: Add support for testing RDMA with software RoCE Zhu Yanjun
2024-06-07 13:10   ` Zhu Yanjun
2024-06-03 16:06 ` [PATCH 4/4] Update help text that mentions SIW cel
2024-06-05 17:50 ` [PATCH 0/4] Add rxe as a second software RDMA option Chuck Lever III

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=20240603160658.4073204-4-cel@kernel.org \
    --to=cel@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=kdevops@lists.linux.dev \
    --cc=zyjzyj2000@gmail.com \
    /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