Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3273788imu; Mon, 19 Nov 2018 13:21:23 -0800 (PST) X-Google-Smtp-Source: AJdET5duhRRr27e1jzMZWQ98rGtpyUUVIyeDQ7k1sN6i7Mg8F0z2f8vcF4s2A3HayfqPgFzfZEpR X-Received: by 2002:a63:680a:: with SMTP id d10mr21706929pgc.396.1542662483837; Mon, 19 Nov 2018 13:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542662483; cv=none; d=google.com; s=arc-20160816; b=eCoc5Yr1dMBR8O6/C7ElCTkTUWVxkzxCsib12dnA3QGMUqlAxpzA8SqZcKZsF3/YCp UYdfiF9o2Miovs7Y5RsBrF6V0Ve5GjaWqtSYAKUmk6D38xwwipRDcRmqWCKAuNEzYTkq X+FxRhoVZLWPHEUKQyhmkFGyCs4gXPTx0mbUmkiyJ9lFWfUj5V/S3/iaVRub+WLbQGVE qqECCDpTxRJX+E1mmuReEVLD1rSyEVvEoYub3O/qUPnl5oxvTi9eEf4oWpUD+fbM0jek YR3vxuDyT2pzB7EnX9RtMbopMCG2Ul0T3RrtaDxrMmYH8h2m4+2h7cKB0R5Itw+ZDhP6 9QYg== 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 f5si41701733pgr.411.2018.11.19.13.21.08; Mon, 19 Nov 2018 13:21:23 -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 S1730980AbeKTHpw (ORCPT + 99 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 Content-Type: text/plain 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