Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2600654imu; Fri, 23 Nov 2018 11:41:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/VioY7F0kHyekCs2nWM+difYEYFcKj8USAtgHLdb+euCyFEPxWqOcX6YKK66H6fpCj1GGJa X-Received: by 2002:a17:902:704b:: with SMTP id h11mr2195962plt.157.1543002115441; Fri, 23 Nov 2018 11:41:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543002115; cv=none; d=google.com; s=arc-20160816; b=UPdKeBV/fViWyffQ2aeVXGT31DgqKpS87RIfqYMUTwKFRqzgEDhIkcw7VyJyjAN8Ce GMmWxQMKyKqHgbKXyKkshqNzlNflryQ/zGn0Bxn1z0/T6LXgpQLHUnjbNV76bakSXZQv D1sDQLOHYEhEKJyF9+4H9pUde9bVULZ8UCOaW+qgL3Nr+nBPPFarWZNcK2WxSNrvZem2 ODXW3UjRv3JrKalnsEGk98jOb+CPyo0bH6vP8j771f2x3rReqsv69lmj1xlX6uzq4IlE WF1y8aqBUq7/1lCvbcRLTNLj2StjyXDSoqSbcNqyTnNiYURcJcSHw/R+w2lRh+QFk1kW UH+A== 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=Y1HGWlzwzwTK4CugVVRirLNMKaQkPVoVoecoN5LMQCU=; b=Unk68MeWCVQL9g9kWB9/35gFuv1NN0VM1vpF5kZrdlijd0teUlklLsVo/6LSjtVavR kvvO6KzmEdqCdxFs8a8QxmgZiQgyA6dpWXlRehixRxi4nyafzZGUw2JFYE/yz3gbSXLy 4lBalOs9uFLQkZJUXJeEThKoXs7qCj68zqP5XYKeKhmsT1YEBv0twPKP785xcCItyWyj cZpW+x4UDwFCAsX0hnO/j/F2Vuq3Vo5ySuSURf0TcgxyZEgDVLgwl6FU8qx4t9ENtEeD KLLqArWpMfx0DQRzmfMTtC8qdrUVGbf6qvLtnn7tsNOX7bzAoXZ3LkcoiJ3cdN0A61wx POSQ== 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 n24si17335909pgv.119.2018.11.23.11.41.40; Fri, 23 Nov 2018 11:41:55 -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 S2389270AbeKWAuf (ORCPT + 99 others); Thu, 22 Nov 2018 19:50:35 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:52175 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729224AbeKWAuf (ORCPT ); Thu, 22 Nov 2018 19:50:35 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 24FE8F9E1AF31; Thu, 22 Nov 2018 22:10:59 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.54) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Thu, 22 Nov 2018 22:10:53 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [PATCH V2 net-next 0/8] net: hns3: Adds support of debugfs to HNS3 driver Date: Thu, 22 Nov 2018 14:09:40 +0000 Message-ID: <20181122140948.23504-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.202.226.54] 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 ("echo queue info [queue no] > cmd") 2. Flow Director ("echo dump fd tcam > cmd") 3. TC config ("echo dump tc > cmd") 4. Transmit Module/Scheduler ("echo dump tm > cmd") 5. QoS pause ("echo dump qos pause cfg > cmd") 6. QoS buffer ("echo dump qos pri map > cmd") 7. QoS prio map ("echo dump qos buf cfg > cmd") NOTE: Above commands are *read-only* and are only intended to query the information from the SoC(and dump inside the kernel, for now) and in no way tries to perform write operations for the purpose of configuration etc. Change Log ---------- V1-->V2: * Addressed the comments provided by Jakub Kicinski. 1. Removed the .rej files mistakenly made part of Flow Director patch. Link: https://lkml.org/lkml/2018/11/20/249 2. Added command summary in the cover letter Link: https://lkml.org/lkml/2018/11/22/1 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 "qos 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 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 265 +++++++++++ drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 17 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 4 + .../net/ethernet/hisilicon/hns3/hns3pf/Makefile | 2 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 487 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 23 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 6 + 12 files changed, 807 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 -- 2.7.4