Direct wqe is a mechanism to fill wqe directly into the hardware. In the case of light load, the wqe will be filled into pcie bar space of the hardware, this will reduce one memory access operation and therefore reduce the latency. This series first refactor current uar mmap process to add branch for direct wqe, then fix an issue on interface to write doorbell, the feature is enabled at last. The kernel parts is named "RDMA/hns: Add support for userspace Direct WQE". Lang Cheng (1): libhns: Fixes data type when writing doorbell Weihang Li (1): Update kernel headers Xi Wang (1): libhns: Refactor hns uar mmap flow Yixing Liu (1): libhns: Add support for direct wqe kernel-headers/rdma/hns-abi.h | 6 +++ providers/hns/hns_roce_u.c | 76 ++++++++++++++++++++++++-------------- providers/hns/hns_roce_u.h | 19 +++++++++- providers/hns/hns_roce_u_db.h | 13 ++----- providers/hns/hns_roce_u_hw_v1.c | 17 +++++---- providers/hns/hns_roce_u_hw_v2.c | 80 ++++++++++++++++++++++++++++++++-------- providers/hns/hns_roce_u_hw_v2.h | 29 ++++++++------- providers/hns/hns_roce_u_verbs.c | 39 ++++++++++++++++++++ 8 files changed, 204 insertions(+), 75 deletions(-) -- 2.7.4