net: hns3: modify an unsuitable reset level for hardware error
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 4 Jan 2020 02:49:31 +0000 (10:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:26:25 +0000 (13:26 -0800)
According to hardware user manual, when hardware reports error
'roc_pkt_without_key_port', the driver should assert function
reset to do the recovery.

So this patch uses HNAE3_FUNC_RESET to replace HNAE3_GLOBAL_RESET.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c

index dc66b4e..f8127d7 100644 (file)
@@ -505,7 +505,7 @@ static const struct hclge_hw_error hclge_ssu_mem_ecc_err_int[] = {
 
 static const struct hclge_hw_error hclge_ssu_port_based_err_int[] = {
        { .int_msk = BIT(0), .msg = "roc_pkt_without_key_port",
-         .reset_level = HNAE3_GLOBAL_RESET },
+         .reset_level = HNAE3_FUNC_RESET },
        { .int_msk = BIT(1), .msg = "tpu_pkt_without_key_port",
          .reset_level = HNAE3_GLOBAL_RESET },
        { .int_msk = BIT(2), .msg = "igu_pkt_without_key_port",
@@ -599,7 +599,7 @@ static const struct hclge_hw_error hclge_ssu_ets_tcg_int[] = {
 
 static const struct hclge_hw_error hclge_ssu_port_based_pf_int[] = {
        { .int_msk = BIT(0), .msg = "roc_pkt_without_key_port",
-         .reset_level = HNAE3_GLOBAL_RESET },
+         .reset_level = HNAE3_FUNC_RESET },
        { .int_msk = BIT(9), .msg = "low_water_line_err_port",
          .reset_level = HNAE3_NONE_RESET },
        { .int_msk = BIT(10), .msg = "hi_water_line_err_port",