[PATCH 2/4] nvme: add support for mlx5 RDMA devices
Shinichiro Kawasaki
shinichiro.kawasaki at wdc.com
Mon Sep 29 20:38:44 PDT 2025
On Sep 28, 2025 / 14:51, Max Gurtovoy wrote:
> Until now, the tests for RDMA transport were only supported on top of
> software RDMA devices (rxe/siw). This commit adds support for running
> tests on top of mlx5 hardware RDMA devices, allowing for more
> comprehensive testing of NVMe-oF RDMA functionality.
>
> Prerequisites:
> - RDMA network interfaces must be configured prior to running tests
> - User should set USE_MLX5=1 environment variable to use mlx5 devices
Hello Max, it's great that now we can run blktests with mlx5 hardware :)
As to this patch, have you considered to use NVME_TARGET_CONTROL?
As the commit 5b6d89ced118 ("nvme/rc: introduce remote target support")
explains, NVME_TARGET_CONTROL was introduced to skip the generic target
setup/cleanup code to run the tests with a real target.
This patch introduced branches with the USE_MLX5 variable. If we take this
approach, we will need to add more branches when we support other hardware in
future. If it is possible, I guess NVME_TARGET_CONTROL will be cleaner.
As to the script to be set as NVME_TARGET_CONTROL, we can find an example:
contrib/nvme_target_control.py. But it might be too complicated for your use
case. I'm guessing the script for your use case will be as simple as this patch,
and it might be worth adding to contrib/.
More information about the Linux-nvme
mailing list