mbox series

[for-next,0/2] RDMA/erdma: Introduce hardware statistics support

Message ID 20231220085424.97407-1-chengyou@linux.alibaba.com (mailing list archive)
Headers show
Series RDMA/erdma: Introduce hardware statistics support | expand

Message

Cheng Xu Dec. 20, 2023, 8:54 a.m. UTC
This small patchset introduces the support of hardware statistics.
Statistics counters can not be put in CQEs due to limited CQE size. To
address this, we provide an extra dma buffer to hardware when posting
statistics query request, and then hardware writes back the response to
this dma buffer. Based on this, we add the hardware statistics support
of erdma.

- #1 introduces dma pool used for hardware responses of CMDQ requests.
- #2 adds hardware statistics support.

Cheng Xu (2):
  RDMA/erdma: Introduce dma pool for hardware responses of CMDQ requests
  RDMA/erdma: Add hardware statistics support

 drivers/infiniband/hw/erdma/erdma.h       |   2 +
 drivers/infiniband/hw/erdma/erdma_hw.h    |  40 +++++++++
 drivers/infiniband/hw/erdma/erdma_main.c  |  40 ++++++++-
 drivers/infiniband/hw/erdma/erdma_verbs.c | 100 +++++++++++++++++++++-
 drivers/infiniband/hw/erdma/erdma_verbs.h |   4 +
 5 files changed, 180 insertions(+), 6 deletions(-)