Re: [PATCH RFC] rdma: Add support to dump SRQ resource in raw format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/18/2023 9:11 PM, Junxian Huang wrote:
External email: Use caution opening links or attachments


From: wenglianfa <wenglianfa@xxxxxxxxxx>

Add support to dump SRQ resource in raw format.

This patch relies on the corresponding kernel patch:
RDMA/core: Add support to dump SRQ resource in RAW format

Example:
$ rdma res show srq -r
dev hns3 149000...

$ rdma res show srq -j -r
[{"ifindex":0,"ifname":"hns3","data":[149,0,0,...]}]

Signed-off-by: wenglianfa <wenglianfa@xxxxxxxxxx>
---
  rdma/include/uapi/rdma/rdma_netlink.h |  2 ++
  rdma/res-srq.c                        | 17 ++++++++++++++++-
  rdma/res.h                            |  2 ++
  3 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/rdma/include/uapi/rdma/rdma_netlink.h b/rdma/include/uapi/rdma/rdma_netlink.h
index 92c528a0..84f775be 100644
--- a/rdma/include/uapi/rdma/rdma_netlink.h
+++ b/rdma/include/uapi/rdma/rdma_netlink.h
@@ -299,6 +299,8 @@ enum rdma_nldev_command {

         RDMA_NLDEV_CMD_STAT_GET_STATUS,

+       RDMA_NLDEV_CMD_RES_SRQ_GET_RAW,
+
         RDMA_NLDEV_NUM_OPS
  };


Usually this file is submitted as a separate patch.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux