Commit da3fea80 authored by Jiaran Zhang's avatar Jiaran Zhang Committed by David S. Miller

net: hns3: add error recovery module and type for himac

This patch adds himac error recovery module, link_error type and
ptp_error type for himac.
Signed-off-by: default avatarJiaran Zhang <zhangjiaran@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b566ef60
...@@ -1242,6 +1242,9 @@ static const struct hclge_hw_module_id hclge_hw_module_id_st[] = { ...@@ -1242,6 +1242,9 @@ static const struct hclge_hw_module_id hclge_hw_module_id_st[] = {
}, { }, {
.module_id = MODULE_MASTER, .module_id = MODULE_MASTER,
.msg = "MODULE_MASTER" .msg = "MODULE_MASTER"
}, {
.module_id = MODULE_HIMAC,
.msg = "MODULE_HIMAC"
}, { }, {
.module_id = MODULE_ROCEE_TOP, .module_id = MODULE_ROCEE_TOP,
.msg = "MODULE_ROCEE_TOP" .msg = "MODULE_ROCEE_TOP"
...@@ -1315,6 +1318,12 @@ static const struct hclge_hw_type_id hclge_hw_type_id_st[] = { ...@@ -1315,6 +1318,12 @@ static const struct hclge_hw_type_id hclge_hw_type_id_st[] = {
}, { }, {
.type_id = GLB_ERROR, .type_id = GLB_ERROR,
.msg = "glb_error" .msg = "glb_error"
}, {
.type_id = LINK_ERROR,
.msg = "link_error"
}, {
.type_id = PTP_ERROR,
.msg = "ptp_error"
}, { }, {
.type_id = ROCEE_NORMAL_ERR, .type_id = ROCEE_NORMAL_ERR,
.msg = "rocee_normal_error" .msg = "rocee_normal_error"
......
...@@ -138,6 +138,7 @@ enum hclge_mod_name_list { ...@@ -138,6 +138,7 @@ enum hclge_mod_name_list {
MODULE_RCB_TX = 12, MODULE_RCB_TX = 12,
MODULE_TXDMA = 13, MODULE_TXDMA = 13,
MODULE_MASTER = 14, MODULE_MASTER = 14,
MODULE_HIMAC = 15,
/* add new MODULE NAME for NIC here in order */ /* add new MODULE NAME for NIC here in order */
MODULE_ROCEE_TOP = 40, MODULE_ROCEE_TOP = 40,
MODULE_ROCEE_TIMER = 41, MODULE_ROCEE_TIMER = 41,
...@@ -166,6 +167,8 @@ enum hclge_err_type_list { ...@@ -166,6 +167,8 @@ enum hclge_err_type_list {
ETS_ERROR = 10, ETS_ERROR = 10,
NCSI_ERROR = 11, NCSI_ERROR = 11,
GLB_ERROR = 12, GLB_ERROR = 12,
LINK_ERROR = 13,
PTP_ERROR = 14,
/* add new ERROR TYPE for NIC here in order */ /* add new ERROR TYPE for NIC here in order */
ROCEE_NORMAL_ERR = 40, ROCEE_NORMAL_ERR = 40,
ROCEE_OVF_ERR = 41, ROCEE_OVF_ERR = 41,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment