Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1302534ybk; Thu, 14 May 2020 05:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcyKoE1Y+zoXRp/7rgcdMLMBLi8rA0PybE6vGUDff0y2pBU0SbBNKqfaogTULB4veTq1Ge X-Received: by 2002:a17:906:7e17:: with SMTP id e23mr3520371ejr.172.1589460444332; Thu, 14 May 2020 05:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589460444; cv=none; d=google.com; s=arc-20160816; b=bfha+Im8RPF1q7Ux1MXFTcJFGFTbKGFXrcIHC6o1Rh9Wyi2EqOcJilODAN4wS6PD3Y UjX76slcwX7fOMS/DxXbOHAdE+B9utXZG7EWbLbgD2lLcysxbaUjx6gfbvJWDYvX0PGT LaaAYuMPr/NacLoWaEa6jdN0y3Lx+HwlgAJJlXOhjDgzecHv94IeDI5vY1RSNoQJiWpi krOzie9fS3V7OwdnwFeREewNTtZDWaO7sS7RH49vMcmffxno7d8qxK5lKcIr2xBf/+l+ uA8OoHr0TCmaYflsDSyuZzOskB8eVMBq/YiWRPjY7Ai+hTFc42wF+v1mKVD+MMC9hWba 3BYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=F/LTE+bdzRRVPKhO+bNfBrvCBQ+PmAjEfNO9k7j14ZQ=; b=UIQPjwq6mdLUHPbnICCVLNqDg41vwElR+6198BqCsWuKvNNSCgXJHnk+VdBK6Sevn0 Uhb6ql9pncGrz6UDWF2PJmvTiiy5ERdxonj3y2kCXge9x0nBr20ODJ7TtV2pIBckn+Pi tNMk1clAtNHw+bvuojkteh902S5FdeF7cHEwuGLEATIxa0S/I6o5jcAXoL1P9nmyxTJ0 3JOONjcMRaivDJ/t2YH1nd2jU5ZNEHws2RJLA/FS1381ioArG7nZmssLkSXrg0V4ecI8 +WMJ0tvlBRM0UMXcRVgVIYpSWSzP6BLPeL6O0I768FfC5BhvDYmF1RmuE786VDKikHw7 xvhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si1529025eda.9.2020.05.14.05.47.01; Thu, 14 May 2020 05:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727801AbgENMnS (ORCPT + 99 others); Thu, 14 May 2020 08:43:18 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:59348 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726067AbgENMnB (ORCPT ); Thu, 14 May 2020 08:43:01 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 24A573C9E4C58D5F1E17; Thu, 14 May 2020 20:42:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 14 May 2020 20:42:50 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 3/5] net: hns3: modify an incorrect error log in hclge_mbx_handler() Date: Thu, 14 May 2020 20:41:24 +0800 Message-ID: <1589460086-61130-4-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589460086-61130-1-git-send-email-tanhuazhong@huawei.com> References: <1589460086-61130-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index ac70faf..0874ae4 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: -- 2.7.4