Skip to content

RDMA/erdma: Support the RoCEv2 protocol

Boshi Yu linux-rdma 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 3 repliesApplied
  2. v18 patches 12 repliesSuperseded

Changes in v2 from the cover letter

- Patch#1: remove the unnecessary check for device protocol.
- Patch#1: remove the erdma_device_init_iwarp() and erdma_device_init_rocev2() functions, as they are simple and used only once.
- Patch#4: move the function definitions of erdma_av_to_attr(), erdma_attr_to_av(), and erdma_set_av_cfg() to patch#5, where they are used for more than once.
- Patch#6: remove the declaration of deprecated erdma_modify_qp_rocev2().
- Patch#6: replace the 'reformat' with 'refactor' in the commit message for clarity.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8RDMA/erdma: Probe the erdma RoCEv2 devicedrivers/infiniband/hw/erdma/Kconfig drivers/infiniband/hw/erdma/erdma.h drivers/infiniband/hw/erdma/erdma_hw.h +3 more+62 -120 replies
2/8RDMA/erdma: Add GID table management interfacesdrivers/infiniband/hw/erdma/erdma.h drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c +2 more+96 -40 replies
3/8RDMA/erdma: Add the erdma_query_pkey() interfacedrivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c drivers/infiniband/hw/erdma/erdma_verbs.c +1 more+18 -00 replies
4/8RDMA/erdma: Add address handle implementationdrivers/infiniband/hw/erdma/erdma.h drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c +2 more+182 -20 replies
5/8RDMA/erdma: Add erdma_modify_qp_rocev2() interfacedrivers/infiniband/hw/erdma/erdma_cq.c drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c +3 more+388 -310 replies
6/8RDMA/erdma: Refactor the code of the modify_qp interfacedrivers/infiniband/hw/erdma/erdma_cm.c drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_main.c +3 more+276 -2200 replies
7/8RDMA/erdma: Add the query_qp command to the cmdqdrivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_verbs.c+60 -100 replies
8/8RDMA/erdma: Support UD QPs and UD WRsdrivers/infiniband/hw/erdma/erdma_cq.c drivers/infiniband/hw/erdma/erdma_hw.h drivers/infiniband/hw/erdma/erdma_qp.c +1 more+136 -212 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchCheng Xu
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH for-next v2 0/8] RDMA/erdma: Support the RoCEv2 protocol

Hi,

This patch series introduces support for the RoCEv2 protocol into the erdma driver. As the most prevalent RDMA protocol, RoCEv2 is widely used in the production environment. Given the extensive application of erdma across various scenarios in the Alibaba Cloud, there has arisen a requirement for erdma to support the RoCEv2 protocol. Therefore, we update both the erdma hardware and the erdma driver to accommodate the RoCEv2 protocol.

- #1 adds the device probe logic for the erdma RoCEv2 device.
- #2~#4 implement resource management interfaces required by the erdma RoCEv2 device, such as the GID table, PKey and address handle.
- #5~#6 implment the modify QP interface for the erdma RoCEv2 device and refactor the code of modify_qp interface to improve readability.
- #7 introduces the query_qp command to obtain several qp attributes from the hardware.
- #8 extends the procedure for create_qp, post_send and poll_cq interfaces to support UD QPs and UD WRs.

Thanks,
Boshi Yu

---

v2:
- Patch#1: remove the unnecessary check for device protocol.
- Patch#1: remove the erdma_device_init_iwarp() and erdma_device_init_rocev2() functions, as they are simple and used only once.
- Patch#4: move the function definitions of erdma_av_to_attr(), erdma_attr_to_av(), and erdma_set_av_cfg() to patch#5, where they are used for more than once.
- Patch#6: remove the declaration of deprecated erdma_modify_qp_rocev2().
- Patch#6: replace the 'reformat' with 'refactor' in the commit message for clarity.

v1:

Boshi Yu (8):
RDMA/erdma: Probe the erdma RoCEv2 device RDMA/erdma: Add GID table management interfaces RDMA/erdma: Add the erdma_query_pkey() interface RDMA/erdma: Add address handle implementation RDMA/erdma: Add erdma_modify_qp_rocev2() interface RDMA/erdma: Refactor the code of the modify_qp interface RDMA/erdma: Add the query_qp command to the cmdq RDMA/erdma: Support UD QPs and UD WRs

 drivers/infiniband/hw/erdma/Kconfig       |   2 +-
 drivers/infiniband/hw/erdma/erdma.h       |   8 +-
 drivers/infiniband/hw/erdma/erdma_cm.c    |  71 +--
 drivers/infiniband/hw/erdma/erdma_cq.c    |  65 +++
 drivers/infiniband/hw/erdma/erdma_hw.h    | 135 +++++-
 drivers/infiniband/hw/erdma/erdma_main.c  |  44 +-
 drivers/infiniband/hw/erdma/erdma_qp.c    | 299 +++++++++---
 drivers/infiniband/hw/erdma/erdma_verbs.c | 524 +++++++++++++++++++---
 drivers/infiniband/hw/erdma/erdma_verbs.h | 166 +++++--
 9 files changed, 1116 insertions(+), 198 deletions(-)
Signature · 1 line
2.43.5