Cover Letter Detail
Show a cover letter.
GET /api/covers/806745/?format=api
{ "id": 806745, "url": "http://patchwork.ozlabs.org/api/covers/806745/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/cover/20170828191748.19492-1-vivien.didelot@savoirfairelinux.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170828191748.19492-1-vivien.didelot@savoirfairelinux.com>", "list_archive_url": null, "date": "2017-08-28T19:17:38", "name": "[net-next,v2,00/10] net: dsa: add generic debugfs interface", "submitter": { "id": 15889, "url": "http://patchwork.ozlabs.org/api/people/15889/?format=api", "name": "Vivien Didelot", "email": "vivien.didelot@savoirfairelinux.com" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/cover/20170828191748.19492-1-vivien.didelot@savoirfairelinux.com/mbox/", "series": [ { "id": 246, "url": "http://patchwork.ozlabs.org/api/series/246/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=246", "date": "2017-08-28T19:17:41", "name": "net: dsa: add generic debugfs interface", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/246/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/806745/comments/", "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xh25434s2z9sNc\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 29 Aug 2017 05:34:00 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751326AbdH1TVl (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tMon, 28 Aug 2017 15:21:41 -0400", "from mail.savoirfairelinux.com ([208.88.110.44]:36264 \"EHLO\n\tmail.savoirfairelinux.com\" rhost-flags-OK-OK-OK-OK) by\n\tvger.kernel.org with ESMTP id S1751190AbdH1TVj (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Mon, 28 Aug 2017 15:21:39 -0400", "from localhost (localhost [127.0.0.1])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTP id A41799C1BC9;\n\tMon, 28 Aug 2017 15:21:38 -0400 (EDT)", "from mail.savoirfairelinux.com ([127.0.0.1])\n\tby localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new,\n\tport 10032)\n\twith ESMTP id Yxx2J0GGgEPy; Mon, 28 Aug 2017 15:21:37 -0400 (EDT)", "from localhost (localhost [127.0.0.1])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTP id 9388B9C1E85;\n\tMon, 28 Aug 2017 15:21:37 -0400 (EDT)", "from mail.savoirfairelinux.com ([127.0.0.1])\n\tby localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new,\n\tport 10026)\n\twith ESMTP id J4iLgR5UfRaw; Mon, 28 Aug 2017 15:21:37 -0400 (EDT)", "from weeman.mtl.sfl (unknown [192.168.50.91])\n\tby mail.savoirfairelinux.com (Postfix) with ESMTPSA id 4B35F9C1B45;\n\tMon, 28 Aug 2017 15:21:37 -0400 (EDT)" ], "X-Virus-Scanned": "amavisd-new at mail.savoirfairelinux.com", "From": "Vivien Didelot <vivien.didelot@savoirfairelinux.com>", "To": "netdev@vger.kernel.org", "Cc": "linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tFlorian Fainelli <f.fainelli@gmail.com>, Andrew Lunn <andrew@lunn.ch>,\n\tEgil Hjelmeland <privat@egil-hjelmeland.no>,\n\tJohn Crispin <john@phrozen.org>, Woojung Huh <Woojung.Huh@microchip.com>,\n\tSean Wang <sean.wang@mediatek.com>,\n\tNikita Yushchenko <nikita.yoush@cogentembedded.com>,\n\tChris Healy <cphealy@gmail.com>,\n\tVivien Didelot <vivien.didelot@savoirfairelinux.com>", "Subject": "[PATCH net-next v2 00/10] net: dsa: add generic debugfs interface", "Date": "Mon, 28 Aug 2017 15:17:38 -0400", "Message-Id": "<20170828191748.19492-1-vivien.didelot@savoirfairelinux.com>", "X-Mailer": "git-send-email 2.14.1", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "This patch series adds a generic debugfs interface for the DSA\nframework, so that all switch devices benefit from it, e.g. Marvell,\nBroadcom, Microchip or any other DSA driver.\n\nThis is really convenient for debugging, especially CPU ports and DSA\nlinks which are not exposed to userspace as net device. This interface\nis currently the only way to easily inspect the hardware for such ports.\n\nWith the patch series, any switch device user is able to query the\nhardware for the supported tagging protocol, the ports stats and\nregisters, as well as their FDB, MDB and VLAN entries.\n\nThis support is only compiled if CONFIG_DEBUG_FS is enabled. Below is\nand example of usage of this interface on a multi-chip switch fabric:\n\n # mount -t debugfs none /sys/kernel/debug\n # cd /sys/kernel/debug/dsa/\n # ls\n switch0 switch1 switch2\n # ls -l switch0/\n drwxr-xr-x 2 root root 0 Jan 1 00:00 port0\n drwxr-xr-x 2 root root 0 Jan 1 00:00 port1\n drwxr-xr-x 2 root root 0 Jan 1 00:00 port2\n drwxr-xr-x 2 root root 0 Jan 1 00:00 port5\n drwxr-xr-x 2 root root 0 Jan 1 00:00 port6\n -r--r--r-- 1 root root 0 Jan 1 00:00 tag_protocol\n -r--r--r-- 1 root root 0 Jan 1 00:00 tree\n # ls -l switch0/port6\n -r--r--r-- 1 root root 0 Jan 1 00:00 fdb\n -r--r--r-- 1 root root 0 Jan 1 00:00 mdb\n -r--r--r-- 1 root root 0 Jan 1 00:00 regs\n -r--r--r-- 1 root root 0 Jan 1 00:00 stats\n -r--r--r-- 1 root root 0 Jan 1 00:00 vlan\n # cat switch0/port2/vlan\n vid 42 untagged pvid\n # cat switch0/port1/fdb\n vid 0 12:34:56:78:90:ab unicast static\n # pr -mt switch0/port{5,6}/stats\n in_good_octets : 0 in_good_octets : 13824\n in_bad_octets : 0 in_bad_octets : 0\n in_unicast : 0 in_unicast : 0\n in_broadcasts : 0 in_broadcasts : 216\n in_multicasts : 0 in_multicasts : 0\n in_pause : 0 in_pause : 0\n in_undersize : 0 in_undersize : 0\n ...\n # pr -mt switch0/port{5,6}/regs\n 0: 4e07\t\t\t 0: 4d04\n 1: 403e\t\t\t 1: 003d\n 2: 0000\t\t\t 2: 0000\n 3: 3521\t\t\t 3: 3521\n 4: 0533\t\t\t 4: 373f\n 5: 8000\t\t\t 5: 0000\n 6: 005f\t\t\t 6: 003f\n 7: 002a\t\t\t 7: 002a\n ...\n\nwhere switch0 port5 and port6 are CPU and DSA ports of a ZII Rev B.\n\nChanges in v2:\n - KISS, drop the WARN_ON if !dst->applied\n - use ds->enabled_port_mask instead of OF nodes\n - add a tag protocol to string helper\n - use %pM to print MAC addresses\n - explicit \"tagged\" VLANs\n\nVivien Didelot (10):\n net: dsa: add debugfs interface\n net: dsa: debugfs: add tree\n net: dsa: debugfs: add tag_protocol\n net: dsa: debugfs: add port stats\n net: dsa: debugfs: add port regs\n net: dsa: debugfs: add port fdb\n net: dsa: restore mdb dump\n net: dsa: debugfs: add port mdb\n net: dsa: restore VLAN dump\n net: dsa: debugfs: add port vlan\n\n drivers/net/dsa/b53/b53_common.c | 41 ++++\n drivers/net/dsa/b53/b53_priv.h | 2 +\n drivers/net/dsa/bcm_sf2.c | 1 +\n drivers/net/dsa/dsa_loop.c | 38 +++\n drivers/net/dsa/microchip/ksz_common.c | 41 ++++\n drivers/net/dsa/mv88e6xxx/chip.c | 82 ++++++-\n include/net/dsa.h | 41 ++++\n net/dsa/Kconfig | 14 ++\n net/dsa/Makefile | 1 +\n net/dsa/debugfs.c | 409 +++++++++++++++++++++++++++++++++\n net/dsa/dsa.c | 3 +\n net/dsa/dsa2.c | 4 +\n net/dsa/dsa_priv.h | 13 ++\n net/dsa/legacy.c | 4 +\n 14 files changed, 686 insertions(+), 8 deletions(-)\n create mode 100644 net/dsa/debugfs.c" }