45 lines
1.2 KiB
Diff
45 lines
1.2 KiB
Diff
|
|
From 3bf0c428672478f2460bd16483d33fd0ccdcb718 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Chengchang Tang <tangchengchang@huawei.com>
|
||
|
|
Date: Mon, 30 Oct 2023 16:59:15 +0800
|
||
|
|
Subject: [PATCH 1/8] Update kernel headers for libhns query_device()
|
||
|
|
|
||
|
|
driver inclusion
|
||
|
|
category: feature
|
||
|
|
bugzilla: https://gitee.com/src-openeuler/rdma-core/issues/I8C6X4
|
||
|
|
|
||
|
|
---------------------------------------------------------------
|
||
|
|
|
||
|
|
To commit 513ecf0e21d3 ("RDMA/hns: Support query HW ID from user space.")
|
||
|
|
|
||
|
|
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
|
||
|
|
---
|
||
|
|
kernel-headers/rdma/hns-abi.h | 14 ++++++++++++++
|
||
|
|
1 file changed, 14 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/kernel-headers/rdma/hns-abi.h b/kernel-headers/rdma/hns-abi.h
|
||
|
|
index 6b94a89..d411c33 100644
|
||
|
|
--- a/kernel-headers/rdma/hns-abi.h
|
||
|
|
+++ b/kernel-headers/rdma/hns-abi.h
|
||
|
|
@@ -232,4 +232,18 @@ enum hns_ib_dca_mem_query_attrs {
|
||
|
|
HNS_IB_ATTR_DCA_MEM_QUERY_OUT_PAGE_COUNT,
|
||
|
|
};
|
||
|
|
|
||
|
|
+#define HNS_IB_INVALID_ID 0XFFFF
|
||
|
|
+struct hns_roce_ib_hw_id {
|
||
|
|
+ __u16 chip_id;
|
||
|
|
+ __u16 die_id;
|
||
|
|
+ __u16 func_id;
|
||
|
|
+ __u16 reserved;
|
||
|
|
+};
|
||
|
|
+
|
||
|
|
+struct hns_roce_ib_query_device_resp {
|
||
|
|
+ __u32 comp_mask;
|
||
|
|
+ __u32 len;
|
||
|
|
+ struct hns_roce_ib_hw_id hw_id;
|
||
|
|
+};
|
||
|
|
+
|
||
|
|
#endif /* HNS_ABI_USER_H */
|
||
|
|
--
|
||
|
|
2.25.1
|
||
|
|
|