| From: |
| Zhu Yanjun <yanjun.zhu-AT-linux.dev> |
| To: |
| jgg-AT-ziepe.ca, leon-AT-kernel.org, zyjzyj2000-AT-gmail.com, linux-rdma-AT-vger.kernel.org, yanjun.zhu-AT-linux.dev, mie-AT-igel.co.jp |
| Subject: |
| [PATCH 0/2] RDMA/rxe: Add dma-buf support for Soft-RoCE |
| Date: |
| Wed, 25 Mar 2026 22:27:37 -0700 |
| Message-ID: |
| <20260326052739.3778-1-yanjun.zhu@linux.dev> |
| Archive-link: |
| Article |
This patchset introduces dma-buf support for the Soft-RoCE (RXE) driver.
By enabling dma-buf, RXE can now participate in zero-copy data transfers
with other providers (such as GPUs) that export memory via dma-buf fds.
Traditionally, RXE only supported user-space memory regions (UMEM) based
on system RAM. This change extends RXE’s capability to handle peer-to-peer
(P2P) like workflows in a software-defined RDMA environment.
This patchset pass the rdma-core tests with the following link for the
rdma-core:
https://github.com/linux-rdma/rdma-core/pull/1055
Zhu Yanjun (2):
RDMA/umem: Change for rdma devices has not dma device
RDMA/rxe: Add dma-buf support
drivers/infiniband/core/umem_dmabuf.c | 35 ++++++++++-
drivers/infiniband/sw/rxe/rxe.c | 2 +
drivers/infiniband/sw/rxe/rxe_loc.h | 2 +
drivers/infiniband/sw/rxe/rxe_mr.c | 89 ++++++++++++++++++++++++---
drivers/infiniband/sw/rxe/rxe_odp.c | 2 +-
drivers/infiniband/sw/rxe/rxe_verbs.c | 40 ++++++++++++
drivers/infiniband/sw/rxe/rxe_verbs.h | 2 +-
include/rdma/ib_umem.h | 1 +
8 files changed, 161 insertions(+), 12 deletions(-)
--
2.53.0