瀏覽代碼

net: hns3: fix for pause configuration lost during reset

Pause configuration will be set to default value by hclge_tm_schd_init
during reset, which causes the RSS configuration loss problem.

This patch fixes it by calling hclge_tm_init_hw during reset process
, which will set the pause configuration to default value.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Yunsheng Lin 7 年之前
父節點
當前提交
f31c1ba668
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

+ 2 - 2
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

@@ -5493,9 +5493,9 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev)
 		return ret;
 		return ret;
 	}
 	}
 
 
-	ret = hclge_tm_schd_init(hdev);
+	ret = hclge_tm_init_hw(hdev);
 	if (ret) {
 	if (ret) {
-		dev_err(&pdev->dev, "tm schd init fail, ret =%d\n", ret);
+		dev_err(&pdev->dev, "tm init hw fail, ret =%d\n", ret);
 		return ret;
 		return ret;
 	}
 	}