Commit 0f4144f8 authored by Jijie Shao's avatar Jijie Shao Committed by Jiantao Xiao
Browse files

net: hns3: support report ROCEE_AXI_RESP_ERROR event for custom

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7YRUW


CVE: NA

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

support report ROCEE_AXI_RESP_ERROR event for custom

Signed-off-by: default avatarJijie Shao <shaojijie@huawei.com>
parent 564846ff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ enum hnae3_event_type_custom {
	HNAE3_IMP_RESET_FAIL_CUSTOM,
	HNAE3_PPU_POISON_CUSTOM,
	HNAE3_IMP_RD_POISON_CUSTOM,
	HNAE3_ROCEE_AXI_RESP_CUSTOM,
	HNAE3_INVALID_EVENT_CUSTOM,
};

+3 −2
Original line number Diff line number Diff line
@@ -1366,12 +1366,13 @@ EXPORT_SYMBOL(nic_unregister_event);
static int hclge_nic_call_event(struct hclge_dev *hdev, void *data,
				size_t length)
{
#define ERROR_EVENT_TYPE_NUM 3
#define ERROR_EVENT_TYPE_NUM 4

	u32 event_type[ERROR_EVENT_TYPE_NUM] = {
		HNAE3_PPU_POISON_CUSTOM,
		HNAE3_IMP_RESET_CUSTOM,
		HNAE3_IMP_RD_POISON_CUSTOM
		HNAE3_IMP_RD_POISON_CUSTOM,
		HNAE3_ROCEE_AXI_RESP_CUSTOM,
	};
	u32 *index = (u32 *)data;