From patchwork Mon Nov 19 21:18:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 151519 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3184718ljp; Mon, 19 Nov 2018 13:20:25 -0800 (PST) X-Google-Smtp-Source: AJdET5dN9Zr2C9G9WfvSbkJBT4xjd/mvGSJyL1hxQ9sOAU+o6nKJ5J9Sv5Y69H6ZBH5fWE1nQ/ML X-Received: by 2002:a65:4646:: with SMTP id k6mr21188100pgr.153.1542662425543; Mon, 19 Nov 2018 13:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542662425; cv=none; d=google.com; s=arc-20160816; b=kLVPlpW9kV0WWJAScRLJtd0ETJyU/7JqdZyn63KwdhiGUOk/AMraiCd7G2j+uGRRym nbqKpZAnjx14LSbzR3LcId9GbBTzgwzSg1k8tepLy7e60y8ayz8ZMpVxjYb/s57jm39t 9oudyrkBYjx+1cc8Q0UPKg1lmmFUJkpj81eND7gbcWyZiSjP05K8qRbV7W2uvwBdauV8 uATNNM/DyzuHx4l6h1m0EwlH9TgaFOxKLCdmonxGFxYZpW7jvOL+cLNGmq2Q0ZR3Urmr pqu127xiPi82J2SsqfBCOmLx1DUD352PrEEzaba3lCDGEQw7tyByoJB17XtYprrd16YB HxDA== 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=rQ1RLV4dhGq9maiAiWI8RxU1cXs/MFIUzjLwx4AStFw=; b=GUvK+//tGBfmxJfGPPFaUbTRZAfcsZtm4qwGApH2/3R2djsInlNRUgmJjwir8mF9iC n0g+nIE3xWx8qKH39mJecntJw10uW/VVz9EU855O80r7oQDJBEnOFeYED0/0obNxxvUM TBF0+ipC+45TWLSQTgJM6G4CM+mxteN6p3GJ/FT5PPDoH11DHawLpYaYrR9oRKRB7m3q TVljvIbnUNbnqwBv1zuw8FwdHJHblUbxN64rq628hw+mVX/YOC3AdDwlZWaXzzG9P+Sz +EC+n5x7BQLLP/nS0qKN85zshzyxorhugBFGVb7OJ8sSniUN9kznepAV7m0KItODDioh bx6A== 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 ce19-v6si46109273plb.162.2018.11.19.13.20.25; Mon, 19 Nov 2018 13:20:25 -0800 (PST) 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 S1730986AbeKTHpw (ORCPT + 32 others); Tue, 20 Nov 2018 02:45:52 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:15120 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730209AbeKTHpw (ORCPT ); Tue, 20 Nov 2018 02:45:52 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1BFA8564ABB7; Tue, 20 Nov 2018 05:20:19 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.88.214) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Tue, 20 Nov 2018 05:20:10 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH net-next 0/8] net: hns3: Adds support of debugfs to HNS3 driver Date: Mon, 19 Nov 2018 21:18:37 +0000 Message-ID: <20181119211845.23168-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 X-Originating-IP: [10.47.88.214] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support of debugfs to the HNS3 driver. Support has been added to query info related to below items: 1. Queue related 2. Flow Director 3. TC config 4. Transmit Module/Scheduler 5. QoS pause 6. QoS buffer 7. QoS prio map liuzhongzhu (8): net: hns3: Add debugfs framework registration net: hns3: Add "queue info" query function net: hns3: Add "FD flow table" info query function net: hns3: Add "tc config" info query function net: hns3: Add "tm config" info query function net: hns3: Add pause config info query function net: hns3: Add "qos prio map" info query function net: hns3: Add "qos buffer" config info query function drivers/net/ethernet/hisilicon/hns3/Makefile | 2 +- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 + .../ethernet/hisilicon/hns3/hns3_debugfs.c | 265 ++++++++++ .../net/ethernet/hisilicon/hns3/hns3_enet.c | 17 +- .../net/ethernet/hisilicon/hns3/hns3_enet.h | 4 + .../ethernet/hisilicon/hns3/hns3pf/Makefile | 2 +- .../hisilicon/hns3/hns3pf/hclge_cmd.h | 1 + .../hisilicon/hns3/hns3pf/hclge_debugfs.c | 487 ++++++++++++++++++ .../hisilicon/hns3/hns3pf/hclge_debugfs.h | 23 + .../hisilicon/hns3/hns3pf/hclge_main.c | 1 + .../hisilicon/hns3/hns3pf/hclge_main.h | 1 + .../hisilicon/hns3/hns3pf/hclge_main.h.rej | 12 + .../ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 6 + 13 files changed, 819 insertions(+), 4 deletions(-) create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h.rej -- 2.17.1