When HW is in resetting stage, we could not poll back all the expected work completions as the HW won't generate cqe anymore. This patch allows driver to compose the expected wc instead of the HW during resetting stage. Once the hardware finished resetting, we can poll cq from hardware again. Signed-off-by: Ran Zhou <zhouran10@h-partners.com> (cherry picked from commit 5494e44cf97e65d858c8f7376c0424a833dc8323)
42 lines
1.0 KiB
Diff
42 lines
1.0 KiB
Diff
From 1c2b95fe3fc64075178935bb3e1bf2086694fba3 Mon Sep 17 00:00:00 2001
|
|
From: Yixing Liu <liuyixing1@huawei.com>
|
|
Date: Wed, 14 Dec 2022 16:37:26 +0800
|
|
Subject: [PATCH 12/18] Update kernel headers
|
|
|
|
To commit ?? ("RDMA/hns: Kernel notify usr space to stop ring db").
|
|
|
|
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
|
|
---
|
|
kernel-headers/rdma/hns-abi.h | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/kernel-headers/rdma/hns-abi.h b/kernel-headers/rdma/hns-abi.h
|
|
index f33d876..1d51612 100644
|
|
--- a/kernel-headers/rdma/hns-abi.h
|
|
+++ b/kernel-headers/rdma/hns-abi.h
|
|
@@ -111,9 +111,9 @@ struct hns_roce_ib_create_qp_resp {
|
|
};
|
|
|
|
struct hns_roce_ib_modify_qp_resp {
|
|
- __u8 tc_mode;
|
|
- __u8 priority;
|
|
- __u8 reserved[6];
|
|
+ __u8 tc_mode;
|
|
+ __u8 priority;
|
|
+ __u8 reserved[6];
|
|
};
|
|
|
|
enum {
|
|
@@ -139,6 +139,8 @@ struct hns_roce_ib_alloc_ucontext_resp {
|
|
__u32 max_inline_data;
|
|
__u8 congest_type;
|
|
__u8 reserved0[7];
|
|
+ __aligned_u64 rsv_for_dca[2];
|
|
+ __aligned_u64 reset_mmap_key;
|
|
};
|
|
|
|
struct hns_roce_ib_alloc_ucontext {
|
|
--
|
|
2.33.0
|
|
|