Skip to content

RFC libhns: Add support for Dynamic Context Attachment

Weihang Li linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Update kernel headerskernel-headers/rdma/hns-abi.h+64 -00 replies
2/5libhns: Introduce DCA for RC QPproviders/hns/hns_roce_u.c providers/hns/hns_roce_u.h providers/hns/hns_roce_u_buf.c+193 -02 replies
3/5libhns: Add support for shrinking DCA memory poolproviders/hns/hns_roce_u.h providers/hns/hns_roce_u_buf.c providers/hns/hns_roce_u_hw_v2.c+105 -00 replies
4/5libhns: Add support for attaching QP's WQE bufferproviders/hns/hns_roce_u.h providers/hns/hns_roce_u_buf.c providers/hns/hns_roce_u_hw_v2.c +2 more+332 -180 replies
5/5libhns: Add support for configuring DCAlibibverbs/cmd_qp.c libibverbs/verbs.h providers/hns/hns_roce_u.c +1 more+67 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH RFC rdma-core 0/5] libhns: Add support for Dynamic Context Attachment

The HIP09 introduces the DCA(Dynamic Context Attachment) feature which supports many RC QPs to share the WQE buffer in a memory pool. If a QP enables DCA feature, the WQE's buffer will not be allocated when creating but when the users start to post WRs. This will reduce the memory consumption when there are too many QPs are inactive.

Please note that we didn't find the right way to get user's configuration, so in #4 we still use environment variable to achieve this. We will be appreciated if anyone can provide some sugggestions.

This series is associated with the kernel series "RDMA/hns: Add support for Dynamic Context Attachment", you can review it at:
https://patchwork.kernel.org/project/linux-rdma/cover/[email protected]/

Weihang Li (1):
Update kernel headers

Xi Wang (4):
libhns: Introduce DCA for RC QP
libhns: Add support for shrinking DCA memory pool
libhns: Add support for attaching QP's WQE buffer
libhns: Add support for configuring DCA

 kernel-headers/rdma/hns-abi.h    |  64 +++++++
 libibverbs/cmd_qp.c              |   3 +-
 libibverbs/verbs.h               |   1 +
 providers/hns/hns_roce_u.c       |  89 +++++++++
 providers/hns/hns_roce_u.h       |  42 +++++
 providers/hns/hns_roce_u_buf.c   | 384 +++++++++++++++++++++++++++++++++++++++
 providers/hns/hns_roce_u_hw_v2.c | 138 +++++++++++++-
 providers/hns/hns_roce_u_hw_v2.h |   7 +
 providers/hns/hns_roce_u_verbs.c |  44 ++++-
 9 files changed, 754 insertions(+), 18 deletions(-)
Signature · 1 line
2.8.1