Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1873740yba; Thu, 25 Apr 2019 07:07:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQhWivGnmqkn086CIiHbrZWd/7+OlZjG+4Q9+Hp/gKX1gfFR5SpNwiEERCeOdEBESbpEPU X-Received: by 2002:a62:26c1:: with SMTP id m184mr1286871pfm.102.1556201251791; Thu, 25 Apr 2019 07:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556201251; cv=none; d=google.com; s=arc-20160816; b=yCcbeRb7ZS9UbKMxKUYaWmpsz+8Ae6BJGDi7bTcICEmTm7N5hffCkFuHvRuW3v6IFG 6btZG1XCvWDDhMSYxT3LzLUuJ4TFmFKzGqMs0pKgebcTNjzJ3c/+A/BoQ23hvT4nmPA/ qWh+dh+x4Wm3g7vM3q+zTeGMwINPCZn3ZazYON2FOvYFKB2UTRUFCbV0eM3oPg5R4HLG AvAudhL0OmQk2VogKJq2ddgQUJFQxpqDiBdlIuQRWueHtFX2Ac1rTsyKe1dB2aAFY+D7 3L2PtKaCR0UIiwPlxtWmeTrAFW+RDj3zAQlWXgb/HwhA6I41gBLIDa3FYJTkraXJx1eb FMsQ== 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=9HLHVKEltmyt/bDYUi9OOHaLgqIpAl1/xErSnL9mWP0=; b=WxiAVDSowjqe/reJGnL7l++p/eTCa5P6PiGLB/eIYV6sOLKS8QGCMTcffOkzjLtPGI DRtlaVg6ujt7MhQdj/FKWj8UbhmWHLgFq+4fL5p7xapRGCaLb9JEEavnUXIoNyQYCias TPED7s0QnaPv5Tn3J1ncdPt8Q48HcIXOAxZAI++xMw/zxS3HhGA2KQwlna/X2qHppdM+ 5MWGG0HJ0/kO9Y6W6C1boAJFpKXVUep6wfpx+Z1vvGwwCYiq8TXA89/4sZloETSpFhUR Hmg2y3l/LyqI42R7JY4YjeAFULfUx6iL5PLjYG7u0UuQ9/BwOdOe3jATJ28eEuBnwsdG 4lOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si22734786pfi.167.2019.04.25.07.07.15; Thu, 25 Apr 2019 07:07:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387959AbfDYMpT (ORCPT + 99 others); Thu, 25 Apr 2019 08:45:19 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6692 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731401AbfDYMoQ (ORCPT ); Thu, 25 Apr 2019 08:44:16 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 35A29A2F53DD9DC7768B; Thu, 25 Apr 2019 20:44:14 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Thu, 25 Apr 2019 20:44:06 +0800 From: Huazhong Tan To: CC: , , , , , , Weihang Li , Peng Li , Huazhong Tan Subject: [PATCH V3 net-next 11/11] net: hns3: remove reset after command send failed Date: Thu, 25 Apr 2019 20:42:55 +0800 Message-ID: <1556196175-65389-12-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556196175-65389-1-git-send-email-tanhuazhong@huawei.com> References: <1556196175-65389-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Weihang Li It's meaningless to trigger reset when failed to send command to IMP, because the failure is usually caused by no authority, illegal command and so on. When that happened, we just need to return the status code for further debugging. Signed-off-by: Weihang Li Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c index 804c870..4ac8063 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c @@ -1653,8 +1653,6 @@ int hclge_handle_hw_msix_error(struct hclge_dev *hdev, if (ret) { dev_err(dev, "fail(%d) to query msix int status bd num\n", ret); - /* reset everything for now */ - set_bit(HNAE3_GLOBAL_RESET, reset_requests); return ret; } @@ -1675,8 +1673,6 @@ int hclge_handle_hw_msix_error(struct hclge_dev *hdev, if (ret) { dev_err(dev, "query all mpf msix int cmd failed (%d)\n", ret); - /* reset everything for now */ - set_bit(HNAE3_GLOBAL_RESET, reset_requests); goto msi_error; } @@ -1710,8 +1706,6 @@ int hclge_handle_hw_msix_error(struct hclge_dev *hdev, if (ret) { dev_err(dev, "clear all mpf msix int cmd failed (%d)\n", ret); - /* reset everything for now */ - set_bit(HNAE3_GLOBAL_RESET, reset_requests); goto msi_error; } @@ -1725,8 +1719,6 @@ int hclge_handle_hw_msix_error(struct hclge_dev *hdev, if (ret) { dev_err(dev, "query all pf msix int cmd failed (%d)\n", ret); - /* reset everything for now */ - set_bit(HNAE3_GLOBAL_RESET, reset_requests); goto msi_error; } @@ -1767,8 +1759,6 @@ int hclge_handle_hw_msix_error(struct hclge_dev *hdev, if (ret) { dev_err(dev, "clear all pf msix int cmd failed (%d)\n", ret); - /* reset everything for now */ - set_bit(HNAE3_GLOBAL_RESET, reset_requests); } /* query and clear mac tnl interruptions */ -- 2.7.4