net: hns3: modify an incorrect error log in hclge_mbx_handler()
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 14 May 2020 12:41:24 +0000 (20:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 20:18:09 +0000 (13:18 -0700)
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 <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c

index ac70fafd15d5168136ad9ef4d197540fa8677786..0874ae47cb03470272637b135a5b71de05b057c9 100644 (file)
@@ -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: