From: Huazhong Tan Date: Thu, 14 May 2020 12:41:24 +0000 (+0800) Subject: net: hns3: modify an incorrect error log in hclge_mbx_handler() X-Git-Tag: v5.8-rc1~165^2~197^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb25a6072b517b34d88f05ae29971c595d77df6e;p=thirdparty%2Flinux.git net: hns3: modify an incorrect error log in hclge_mbx_handler() When handling HCLGE_MBX_GET_LINK_STATUS, PF will return the link status to the VF, so the error log of hclge_get_link_info() is incorrect. Reported-by: Jian Shen Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index ac70fafd15d51..0874ae47cb034 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c @@ -742,7 +742,7 @@ void hclge_mbx_handler(struct hclge_dev *hdev) ret = hclge_get_link_info(vport, req); if (ret) dev_err(&hdev->pdev->dev, - "PF fail(%d) to get link stat for VF\n", + "failed to inform link stat to VF, ret = %d\n", ret); break; case HCLGE_MBX_QUEUE_RESET: