Skip to content

RDMA/rxe: Add dma-buf support for Soft-RoCE

Zhu Yanjun linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2RDMA/umem: Change for rdma devices has not dma devicedrivers/infiniband/core/umem_dmabuf.c include/rdma/ib_umem.h+35 -11 reply
2/2RDMA/rxe: Add dma-buf supportdrivers/infiniband/sw/rxe/rxe.c drivers/infiniband/sw/rxe/rxe_loc.h drivers/infiniband/sw/rxe/rxe_mr.c +3 more+126 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] RDMA/rxe: Add dma-buf support for Soft-RoCE

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(-)
Signature · 1 line
2.53.0