Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp937222ybl; Wed, 28 Aug 2019 07:26:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVFJs/biQaaNdhrZnO2d3wPzs5VMmcw/WH7nvDBKBIt870ENv6e1MZjmp784eTPI9XFJOn X-Received: by 2002:aa7:8753:: with SMTP id g19mr5004147pfo.249.1567002409414; Wed, 28 Aug 2019 07:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567002409; cv=none; d=google.com; s=arc-20160816; b=bgTrIrV6hdRcycc/NTUAC14e2i2YaNKnuOpYT9J8CxL7/mnJigRkQm1dg5wmy8qKkP K93jmPfQ6sEWcwfJO7WBwGXtb61ByejC4YlbF8kxzgj35dztXUfIEQmMs7kczIkqVouO bHvocQEM/RP7UxILrd8FLNHn+O8Xb+cqfmdm0RUlEc3DxlOsPLiiAvStoPJrfGediA5h hqlXdX95Qt+DSrNg+xJu1oqxH9gsiSphiMYuAyOZ7vzoXm8KU3xX7xZj4ydZgptGF5DU uihacjcFJiOxckqRhUXdt+lhlNtiHuWJuuntWcE01FOT/cqzUT27JPmNsvnPP3YDfjT+ gxZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=PStXyXn1Qz8nuNnFIlGfTpymors089qcxG7qSK02X3U=; b=NrufL1E+1jRLytt3jiYFx31VSIWGyhzResW2XGTW/DabZnCt5CKG9w5cujlUNh4phh /crsJX6YRtVU/h6/1jkkwG4EQo5cACL6OyZIV3c7muSIEf9pPdCHYTF2nJEm0zk4YQ8D dFI+TprbtOgVlZ7Auva26vjjKH8nRvVCFQxABXmr2zhybW+7cz2jxtipvvfX0JoiXCTM iMpKMQxvY0hUzez6j46OllR7YSslzGChQ2UQ53xl4Ihz+METprEUrP2dJdQMSPEPziRz 0lfMUrliQeKG2SmNwk/PGdAFg/ygOa3BtWVG3WfEw9Rji8v8rejiBwlow8U2sxFLmSPU spQg== 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 c137si2313073pga.80.2019.08.28.07.26.32; Wed, 28 Aug 2019 07:26:49 -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 S1726795AbfH1OZk (ORCPT + 99 others); Wed, 28 Aug 2019 10:25:40 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:5233 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726397AbfH1OZj (ORCPT ); Wed, 28 Aug 2019 10:25:39 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1C7947BC4F351F1B1D10; Wed, 28 Aug 2019 22:25:36 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Wed, 28 Aug 2019 22:25:29 +0800 From: Huazhong Tan To: CC: , , , , , Huazhong Tan Subject: [PATCH net-next 00/12] net: hns3: add some cleanups and optimizations Date: Wed, 28 Aug 2019 22:23:04 +0800 Message-ID: <1567002196-63242-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 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 This patch-set includes cleanups, optimizations and bugfix for the HNS3 ethernet controller driver. [patch 01/12] adds code optimization for debugfs command "dump reg". [patch 02/12] fixes magic number issues. [patch 03/12] modifies some parameters about hclge_dbg_dump_tm_map(). [patch 04/12] removes some unused parameters. [patch 05/12] refactors some logs to make them more readable. [patch 06/12] makes some resusable codes into functions. [patch 07/12] fixes some type errors. [patch 08/12] reduces the waiting time for per TQP reset. [patch 09/12] implements .process_hw_error for hns3 client. [patch 10/12] adds phy selftest for HNS3 driver. [patch 11/12] adds checking for reset interrupt status when reset fails. [patch 12/12] prevents SSU loopback when running ethtool -t. Guojia Liao (2): net: hns3: reduce the parameters of some functions net: hns3: fix incorrect type in assignment. Huazhong Tan (3): net: hns3: use macro instead of magic number net: hns3: modify base parameter of kstrtouint in hclge_dbg_dump_tm_map net: hns3: check reset interrupt status when reset fails Weihang Li (1): net: hns3: implement .process_hw_error for hns3 client Yonglong Liu (1): net: hns3: make some reusable codes into a function Yufeng Mo (3): net: hns3: optimize some log printings net: hns3: add phy selftest function net: hns3: not allow SSU loopback while execute ethtool -t dev Zhongzhu Liu (2): net: hns3: code optimization for debugfs related to "dump reg" net: hns3: optimize waiting time for TQP reset drivers/net/ethernet/hisilicon/hns3/hnae3.h | 9 +- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 25 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 24 ++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 5 + drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 16 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 28 +++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 54 ++-- .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 271 +++++++++++---------- .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 19 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 42 ++-- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 268 ++++++++++++++++---- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 9 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 10 +- 14 files changed, 546 insertions(+), 235 deletions(-) -- 2.7.4