Skip to content

Commit f31c1ba

Browse files
Yunsheng Lindavem330
authored andcommitted
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>
1 parent 268f5df commit f31c1ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5493,9 +5493,9 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev)
54935493
return ret;
54945494
}
54955495

5496-
ret = hclge_tm_schd_init(hdev);
5496+
ret = hclge_tm_init_hw(hdev);
54975497
if (ret) {
5498-
dev_err(&pdev->dev, "tm schd init fail, ret =%d\n", ret);
5498+
dev_err(&pdev->dev, "tm init hw fail, ret =%d\n", ret);
54995499
return ret;
55005500
}
55015501

0 commit comments

Comments
 (0)