From 4fe79a9dc4b3b735ededf17dada62d022d170394 Mon Sep 17 00:00:00 2001
From: Chengchang Tang <tangchengchang@huawei.com>
Date: Mon, 30 Oct 2023 16:59:17 +0800
Subject: [PATCH 3/8] Update kernel headers for supporting POE CQs

driver inclusion
category: feature
bugzilla: https://gitee.com/src-openeuler/rdma-core/issues/I8C6X4

---------------------------------------------------------------

To commit eb68cb8c47ed ("RDMA/hns: Support configuring POE channels and creating POE CQs")

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
---
 kernel-headers/rdma/hns-abi.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/kernel-headers/rdma/hns-abi.h b/kernel-headers/rdma/hns-abi.h
index d411c33..817fc06 100644
--- a/kernel-headers/rdma/hns-abi.h
+++ b/kernel-headers/rdma/hns-abi.h
@@ -36,15 +36,23 @@
 
 #include <linux/types.h>
 
+enum hns_roce_create_cq_create_flags {
+	HNS_ROCE_CREATE_CQ_FLAGS_POE_MODE = 1 << 0,
+};
+
 struct hns_roce_ib_create_cq {
 	__aligned_u64 buf_addr;
 	__aligned_u64 db_addr;
 	__u32 cqe_size;
 	__u32 reserved;
+	__aligned_u64 create_flags; /* Use enum hns_roce_create_cq_create_flags */
+	__u8 poe_channel;
+	__u8 rsv[7];
 };
 
 enum hns_roce_cq_cap_flags {
 	HNS_ROCE_CQ_FLAG_RECORD_DB = 1 << 0,
+	HNS_ROCE_CQ_FLAG_POE_EN = 1 << 2,
 };
 
 struct hns_roce_ib_create_cq_resp {
-- 
2.25.1

