Jian Shen feels that this implementation is not appropriate, will send a v2 later.
On 2020/9/8 9:49, Yonglong Liu wrote:
commit: 412c29318f9b ("net: hns3: refactor the MAC address configure") removed the operation of HNAE3_RESTORE_CLIENT, so after S3 or S4, the MAC address is missing, then cause ping failed. According to the commit, need to assign a reset type to restore the MAC address.
Signed-off-by: Yonglong Liu liuyonglong@huawei.com
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 823f161..25aee93 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -3850,6 +3850,8 @@ static int hclge_resume(struct hnae3_ae_dev *ae_dev)
rtnl_lock();
- hdev->reset_type = HNAE3_GLOBAL_RESET;
- ret = hclge_reset_ae_dev(hdev->ae_dev); if (ret) goto err_reset_lock;