net: hns3: add new ras error type for roce
authorWeihang Li <liweihang@huawei.com>
Sun, 24 Oct 2021 09:41:14 +0000 (17:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:00:59 +0000 (14:00 +0100)
This patch adds one ras error of bus related for roce, this error
including RRESP/BRESP and read poison error.

Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h

index 93aa7f2bdc13bc02c5e89a851841cafa188f8445..59df3c477c36abec04133feba52e56b1b4e7dd97 100644 (file)
@@ -1321,7 +1321,10 @@ static const struct hclge_hw_type_id hclge_hw_type_id_st[] = {
        }, {
                .type_id = ROCEE_OVF_ERR,
                .msg = "rocee_ovf_error"
-       }
+       }, {
+               .type_id = ROCEE_BUS_ERR,
+               .msg = "rocee_bus_error"
+       },
 };
 
 static void hclge_log_error(struct device *dev, char *reg,
index d811eeefe2c0548d1d1ecb054546601e4d76b0d3..2f4f4c71a5ec7bb1c521e015f618d03828bbc3a6 100644 (file)
@@ -169,6 +169,7 @@ enum hclge_err_type_list {
        /* add new ERROR TYPE for NIC here in order */
        ROCEE_NORMAL_ERR        = 40,
        ROCEE_OVF_ERR           = 41,
+       ROCEE_BUS_ERR           = 42,
        /* add new ERROR TYPE for ROCEE here in order */
 };