From patchwork Sat Apr 18 06:46:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tanhuazhong X-Patchwork-Id: 1272579 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4943Sl5ZV5z9sSd for ; Sat, 18 Apr 2020 16:48:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725939AbgDRGsT (ORCPT ); Sat, 18 Apr 2020 02:48:19 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54006 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725884AbgDRGsT (ORCPT ); Sat, 18 Apr 2020 02:48:19 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DADEB307FE52D36765B5; Sat, 18 Apr 2020 14:48:14 +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; Sat, 18 Apr 2020 14:48:08 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 00/10] net: hns3: misc updates for -next Date: Sat, 18 Apr 2020 14:46:59 +0800 Message-ID: <1587192429-11463-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patchset includes some misc updates for the HNS3 ethernet driver. [patch 1&2] separates two bloated function. [patch 3-5] removes some redundant code. [patch 6-7] cleans up some coding style issues. [patch 8-10] adds some debugging information. Guojia Liao (4): net: hns3: remove useless proto_support field in struct hclge_fd_cfg net: hns3: remove two unused structures in hclge_cmd.h net: hns3: modify some unsuitable type declaration net: hns3: add debug information for flow table when failed Huazhong Tan (2): net: hns3: remove an unnecessary case 0 in hclge_fd_convert_tuple() net: hns3: clean up some coding style issue Jian Shen (2): net: hns3: split out hclge_fd_check_ether_tuple() net: hns3: split out hclge_get_fd_rule_info() Yufeng Mo (2): net: hns3: add support of dumping MAC reg in debugfs net: hns3: add trace event support for PF/VF mailbox drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 2 +- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 25 - .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 115 +++- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 645 ++++++++++++--------- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 1 - .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 7 + .../ethernet/hisilicon/hns3/hns3pf/hclge_trace.h | 87 +++ .../net/ethernet/hisilicon/hns3/hns3vf/Makefile | 1 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 7 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_trace.h | 87 +++ 11 files changed, 670 insertions(+), 308 deletions(-) create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_trace.h create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_trace.h