Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2250095pxk; Sun, 27 Sep 2020 00:16:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbC4FBojf1eQnfb8NaijTSeRehLntfa0eABQy2U1oPOIL3ymCqIXNYX8zAincr5LdzSMMw X-Received: by 2002:aa7:c155:: with SMTP id r21mr10219526edp.140.1601191015225; Sun, 27 Sep 2020 00:16:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601191015; cv=none; d=google.com; s=arc-20160816; b=MydMYSQR4Mp6uwBxWLjc6C82nurMfRmo9/JjklxXRe+kuZxeVBcFMVgFV7viQdjZ9c gnEPXy7Q/D0/O11nkRgplUP18vQonUjCUR57y6gjf2VaK6K5q38lc3ku3EBrh6lEoryh /bQYGtUd+tu2gDvdHHrsnu3PkNsA1h7opzpy2YijJpEIVg4iT/FRuNE2oghqA+D83tGA r+aFJ+smwjjQO4CrGtfTKCl/jJyoLh0K1lOwudHCPNNoglgEexUXMsn6FPiICpR/tquw VLU+1cI2NcCFdcCiTMPQYA5k72U/ZYjhpJUJZapoNM6J2HSBmg27pF6Af1IcIMpSp0F+ avsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=VuZwqlTIWhBkXo53Aq1OFwh9t0tWpm0YQrTe4GWB3f4=; b=gUvjK9x2G2iD8DDvUpLoftPKxiR/h2VSftWL/VNnSRNukpytrCD8UV+oMBr3ZGhEDx tq/EWt0mqSBeOhqdZIjeo/UwXC0PEhbs9v20fSeHGokIXoAYF+VIFlAQc+ZHt0DJQu39 dhUNi8EooQ7zUtMcho/n7Pyt5JRl+x/XIMauJF05bFmAhBu5/ljcHoTaX2D0TCKRV5IM g+tjc42DxsA7Wb9UnqXqT128xQJXdlBogmVbf307UwO5Cytpjll1bnPpXAILuMWCBjK2 E6Ftv2yjACLVlZtT9hAlqe2yzf6wb7YieaioyZCByDCp2DFY6nwNtr0Fmg3+s9RxdOV/ wMJA== 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 mh2si5127199ejb.228.2020.09.27.00.16.31; Sun, 27 Sep 2020 00:16:55 -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 S1729740AbgI0HPi (ORCPT + 99 others); Sun, 27 Sep 2020 03:15:38 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14302 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726840AbgI0HPi (ORCPT ); Sun, 27 Sep 2020 03:15:38 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 41D1C35968E9FAA0CA37; Sun, 27 Sep 2020 15:15:36 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sun, 27 Sep 2020 15:15:30 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 00/10] net: hns3: updates for -next Date: Sun, 27 Sep 2020 15:12:38 +0800 Message-ID: <1601190768-50075-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.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To facilitate code maintenance and compatibility, #1 and #2 add device version to replace pci revision, #3 to #9 adds support for querying device capabilities and specifications, then the driver can use these query results to implement corresponding features (some features will be implemented later). And #10 is a minor cleanup since too many parameters for hclge_shaper_para_calc(). Guangbin Huang (9): net: hns3: add device version to replace pci revision net: hns3: delete redundant PCI revision judgement net: hns3: add support to query device capability net: hns3: use capability flag to indicate FEC net: hns3: use capabilities queried from firmware net: hns3: add debugfs to dump device capabilities net: hns3: add support to query device specifications net: hns3: replace the macro of max tm rate with the queried specification net: hns3: add a check for device specifications queried from firmware Huazhong Tan (1): net: hns3: add a structure for IR shaper's parameter in hclge_shaper_para_calc() drivers/net/ethernet/hisilicon/hns3/hnae3.h | 81 +++++++++++++- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 24 +++++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 20 ++-- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 30 ++++-- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 65 +++++++++--- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 36 ++++++- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 14 +-- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 117 +++++++++++++++++---- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 101 ++++++++++-------- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 8 ++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c | 62 ++++++++--- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 34 +++++- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 94 +++++++++++++++-- 13 files changed, 548 insertions(+), 138 deletions(-) -- 2.7.4