提交 c81f5e62 编写于 作者: H Huazhong Tan 提交者: Xie XiuQi

net: hns3: modify two macro definition

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Async two macro definition with M7.

Also adds a hardware error check to hclge_handle_mpf_ras_error()
which has been removed incorrectly.

Fixes: 7cc5f1c13564 ("net: hns3: add support for handling IMP error")

Feature or Bugfix:Bugfix
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Nlinyunsheng <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2fb6bcd9
...@@ -1142,6 +1142,9 @@ static int hclge_handle_mpf_ras_error(struct hclge_dev *hdev, ...@@ -1142,6 +1142,9 @@ static int hclge_handle_mpf_ras_error(struct hclge_dev *hdev,
&hclge_cmdq_nic_mem_ecc_int[0], status, &hclge_cmdq_nic_mem_ecc_int[0], status,
&ae_dev->hw_err_reset_req); &ae_dev->hw_err_reset_req);
if ((le32_to_cpu(desc[0].data[2])) & BIT(0))
dev_warn(dev, "imp_rd_data_poison_err found\n");
status = le32_to_cpu(desc[0].data[3]); status = le32_to_cpu(desc[0].data[3]);
if (status) if (status)
hclge_log_error(dev, "TQP_INT_ECC_INT_STS", hclge_log_error(dev, "TQP_INT_ECC_INT_STS",
......
...@@ -183,8 +183,8 @@ enum HLCGE_PORT_TYPE { ...@@ -183,8 +183,8 @@ enum HLCGE_PORT_TYPE {
#define HCLGE_VECTOR0_RX_CMDQ_INT_B 1 #define HCLGE_VECTOR0_RX_CMDQ_INT_B 1
#define HCLGE_VECTOR0_IMP_RESET_INT_B 1 #define HCLGE_VECTOR0_IMP_RESET_INT_B 1
#define HCLGE_VECTOR0_IMP_RD_POISON_B 4 #define HCLGE_VECTOR0_IMP_CMDQ_ERR_B 4
#define HCLGE_VECTOR0_IMP_CMDQ_ERR_B 5 #define HCLGE_VECTOR0_IMP_RD_POISON_B 5
#define HCLGE_MAC_DEFAULT_FRAME \ #define HCLGE_MAC_DEFAULT_FRAME \
(ETH_HLEN + ETH_FCS_LEN + 2 * VLAN_HLEN + ETH_DATA_LEN) (ETH_HLEN + ETH_FCS_LEN + 2 * VLAN_HLEN + ETH_DATA_LEN)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册