mbox series

[for-next,0/3] RDMA/erdma: Add hierachical MTT support

Message ID 20230817102151.75964-1-chengyou@linux.alibaba.com (mailing list archive)
Headers show
Series RDMA/erdma: Add hierachical MTT support | expand

Message

Cheng Xu Aug. 17, 2023, 10:21 a.m. UTC
Currently, erdma only supports 0-level or 1-level MTT, which limits the
maximum length of MR. It fails to meet the requirements in some scenarios.
Therefore, we implement hierachical MTT to support 2-level and 3-level
MTT, so that users can register MRs large to 64G to erdma devices.

- #1 ~ #2 make some preparations, such as renaming certain variables and
  refactoring the storage structure of MTT.
- #3 implements the hierachical MTT.

Cheng Xu (3):
  RDMA/erdma: Renaming variable names and field names of struct
    erdma_mem
  RDMA/erdma: Refactor the storage structure of MTT entries
  RDMA/erdma: Implement hierachical MTT

 drivers/infiniband/hw/erdma/erdma_hw.h    |  18 +-
 drivers/infiniband/hw/erdma/erdma_qp.c    |   2 +-
 drivers/infiniband/hw/erdma/erdma_verbs.c | 430 ++++++++++++++++------
 drivers/infiniband/hw/erdma/erdma_verbs.h |  36 +-
 4 files changed, 357 insertions(+), 129 deletions(-)

Comments

Leon Romanovsky Aug. 19, 2023, 11:42 a.m. UTC | #1
On Thu, 17 Aug 2023 18:21:48 +0800, Cheng Xu wrote:
> Currently, erdma only supports 0-level or 1-level MTT, which limits the
> maximum length of MR. It fails to meet the requirements in some scenarios.
> Therefore, we implement hierachical MTT to support 2-level and 3-level
> MTT, so that users can register MRs large to 64G to erdma devices.
> 
> - #1 ~ #2 make some preparations, such as renaming certain variables and
>   refactoring the storage structure of MTT.
> - #3 implements the hierachical MTT.
> 
> [...]

Applied, thanks!

[1/3] RDMA/erdma: Renaming variable names and field names of struct erdma_mem
      https://git.kernel.org/rdma/rdma/c/d7cfbba90b8015
[2/3] RDMA/erdma: Refactor the storage structure of MTT entries
      https://git.kernel.org/rdma/rdma/c/7244b4aa4221d7
[3/3] RDMA/erdma: Implement hierachical MTT
      https://git.kernel.org/rdma/rdma/c/ed10435d358314

Best regards,