From patchwork Sun Dec 2 23:09:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 152664 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6164052ljp; Sun, 2 Dec 2018 15:11:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/US8m6mapo5/FN9xn5Yyl2uzy3L53+hiHbT3/lpKAwIG4hsXUNTO9z+ohGc3lji02cMcykf X-Received: by 2002:a17:902:b01:: with SMTP id 1mr13966638plq.331.1543792280415; Sun, 02 Dec 2018 15:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543792280; cv=none; d=google.com; s=arc-20160816; b=K9qJM+RUZpLifx45Z6QDkiRR5HZ7k34PvHs1+YZfRvKgLkBXYauoq6HSUX1KijCmMc 7SABXWd5KAdEPfgrHTiGj4zwMTPhiOxWrLWJ2EXVY7Sk+SJdcVAktcaC3nS4QPxqaRvK Ie9eGL9QkBc/W4XENt2JZvVXtohhrxS/+QbZ3cjOzul5yWisnOuyp31I+KKeeisOYssF /vY3uXbIvJgNOojBq8mKE/uxhEyi8oarvNqks0U1XXLUwz1iwU044Th9BirEyzDpSc8Y RbsimKdfgr6OT3XOs6hyWvdZmji5goulTGRfuGOGtQwClueorcyU1RJ6HRqu44eBhRpu UysA== 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=s2Ul6vWDZx9jc4wmkGcVDVv/GYWHwOqkCxexuDEXFSA=; b=fJZL7244EPhSIUzajFNMS1RKBAYPDPDZzwIH6i/zIq4gYbNepHZ6/xTYr0WlX+hSYU OxlSb2Ko0V7cxiZPDvutUqegm/EUvt6vWwd9ilhEjIT05xWIWpIhpO7cYwMXE3zj0E/K GUCBSkrhgba1BlxbhgKnsTGjhCgKvK3JKOqt3Isi4E12p5XMUqr7tdHoNNqcdKJ51I+G HyKvCd+iSWPs6drXZCvGPe3kGuz0bVpZhW1xV27VI5ymqh839hlwAzBH5oaVYIXLVM8q M+LYeekZLaoSgzV6rhCovmzgM7R+TvhspbudRohS8PVlC5ICadnyEjA5imkl19ndOt5c F1/Q== 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 f28si12164848pff.131.2018.12.02.15.11.20; Sun, 02 Dec 2018 15:11:20 -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 S1725824AbeLBXLN (ORCPT + 32 others); Sun, 2 Dec 2018 18:11:13 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:51995 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725785AbeLBXLM (ORCPT ); Sun, 2 Dec 2018 18:11:12 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1976E5E84B35F; Mon, 3 Dec 2018 07:11:08 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.90.156) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Mon, 3 Dec 2018 07:11:01 +0800 From: Salil Mehta To: CC: , , , , , , Subject: [RFC net-next 0/9] net: hns3: Add more commands to Debugfs in HNS3 driver Date: Sun, 2 Dec 2018 23:09:24 +0000 Message-ID: <20181202230933.15560-1-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 X-Originating-IP: [10.47.90.156] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set adds few more debugfs commands to HNS3 Ethernet Driver. Support has been added to query info related to below items: 1. Packet buffer descriptor ("echo bd info [queue no] [bd index] > cmd") 2. Mac Forward table("echo dump mac tbl > cmd") 3. Port vlan Forward table("echo dump port vlan tbl > cmd") 4. Vf vlan Forward table("echo dump vf vlan tbl [vf id]> cmd") 5. Manager table("echo dump mng tbl > cmd") 6. Dfx status register("echo dump reg ssu [prt id] > cmd") 7. Dcb status register("echo dump reg dcb [port id] > cmd") 8. Queue map ("echo queue map [queue no] > cmd") 9. Tm map ("echo tm map [queue no] > 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. As per the earlier community review, it was understood that any attempt to add commands for which standard tools are present is discouraged. Any review comments and suggestions related to above set of commands would be of great help in preapring the final patch-set. Thank you! liuzhongzhu (9): net: hns3: Add "bd info" query function net: hns3: Add "mac table" information query function net: hns3: Add "port vlan table" information query function net: hns3: Add "vf vlan table" information query function net: hns3: Add "manager table" information query function net: hns3: Add "status register" information query function net: hns3: Add "dcb register" status information query function net: hns3: Add "queue map" information query function net: hns3: Add "tm map" status information query function drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 139 +++- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 58 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 744 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 706 +++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 20 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 7 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 18 + 11 files changed, 1696 insertions(+), 3 deletions(-) -- 2.11.0