get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1315230/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1315230,
    "url": "http://patchwork.ozlabs.org/api/patches/1315230/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200623130657.5668-2-ciara.loftus@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20200623130657.5668-2-ciara.loftus@intel.com>",
    "list_archive_url": null,
    "date": "2020-06-23T13:06:56",
    "name": "[net-next,v2,2/3] i40e: add xdp ring statistics to dump vsi debug output",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "774c90079f02ce72ee8a4070de58df589349ae03",
    "submitter": {
        "id": 67255,
        "url": "http://patchwork.ozlabs.org/api/people/67255/?format=api",
        "name": "Ciara Loftus",
        "email": "ciara.loftus@intel.com"
    },
    "delegate": {
        "id": 109701,
        "url": "http://patchwork.ozlabs.org/api/users/109701/?format=api",
        "username": "anguy11",
        "first_name": "Anthony",
        "last_name": "Nguyen",
        "email": "anthony.l.nguyen@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200623130657.5668-2-ciara.loftus@intel.com/mbox/",
    "series": [
        {
            "id": 185266,
            "url": "http://patchwork.ozlabs.org/api/series/185266/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=185266",
            "date": "2020-06-23T13:06:55",
            "name": "[net-next,v2,1/3] i40e: add xdp ring statistics to vsi stats",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/185266/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1315230/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1315230/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>)",
            "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 49rnCw2gXnz9sRf\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 23 Jun 2020 23:28:28 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id E22BE883A2;\n\tTue, 23 Jun 2020 13:28:26 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id wZ6TmVfmlZm5; Tue, 23 Jun 2020 13:28:25 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 29C1888364;\n\tTue, 23 Jun 2020 13:28:25 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by ash.osuosl.org (Postfix) with ESMTP id 2AE951BF2C9\n for <intel-wired-lan@lists.osuosl.org>; Tue, 23 Jun 2020 13:28:22 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by silver.osuosl.org (Postfix) with ESMTP id 21601203A8\n for <intel-wired-lan@lists.osuosl.org>; Tue, 23 Jun 2020 13:28:22 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id 2h+Vw7EF43hB for <intel-wired-lan@lists.osuosl.org>;\n Tue, 23 Jun 2020 13:28:21 +0000 (UTC)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by silver.osuosl.org (Postfix) with ESMTPS id 780F2203F3\n for <intel-wired-lan@lists.osuosl.org>; Tue, 23 Jun 2020 13:28:21 +0000 (UTC)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Jun 2020 06:28:21 -0700",
            "from silpixa00399839.ir.intel.com (HELO localhost.localdomain)\n ([10.237.222.8])\n by fmsmga007.fm.intel.com with ESMTP; 23 Jun 2020 06:28:20 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "IronPort-SDR": [
            "\n tOdJi1YGwr3DDZ3lX5UCn5Kl+VDK5xo5vYwNdTRKz75YysiOFabSsEZFkXAdKGCsTbbCusWqvU\n R17ey9WwodEw==",
            "\n ct+i0cF6Vg3bufLef4Pv5YrGV9gOugHshh6Iwk9GsKDUsvNIEFmz7xpN0BIFfPE/DNHMz0KDDN\n DUoISYYTWeBA=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9660\"; a=\"141557624\"",
            "E=Sophos;i=\"5.75,271,1589266800\"; d=\"scan'208\";a=\"141557624\"",
            "E=Sophos;i=\"5.75,271,1589266800\"; d=\"scan'208\";a=\"263336529\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Ciara Loftus <ciara.loftus@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue, 23 Jun 2020 13:06:56 +0000",
        "Message-Id": "<20200623130657.5668-2-ciara.loftus@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200623130657.5668-1-ciara.loftus@intel.com>",
        "References": "<20200623130657.5668-1-ciara.loftus@intel.com>",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH net-next v2 2/3] i40e: add xdp ring\n statistics to dump vsi debug output",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n <intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>,\n <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "netdev@vger.kernel.org, magnus.karlsson@intel.com",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "Prior to this, only the rx and tx ring statistics were dumped. The xdp\nring statistics are now dumped as well.\n\nSigned-off-by: Ciara Loftus <ciara.loftus@intel.com>\n---\n .../net/ethernet/intel/i40e/i40e_debugfs.c    | 41 +++++++++++++++++++\n 1 file changed, 41 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c\nindex 99ea543dd245..1c8285fce33f 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c\n@@ -319,6 +319,47 @@ static void i40e_dbg_dump_vsi_seid(struct i40e_pf *pf, int seid)\n \t\t\t i, tx_ring->itr_setting,\n \t\t\t ITR_IS_DYNAMIC(tx_ring->itr_setting) ? \"dynamic\" : \"fixed\");\n \t}\n+\tif (i40e_enabled_xdp_vsi(vsi)) {\n+\t\tfor (i = 0; i < vsi->num_queue_pairs; i++) {\n+\t\t\tstruct i40e_ring *xdp_ring = READ_ONCE(vsi->xdp_rings[i]);\n+\n+\t\t\tif (!xdp_ring)\n+\t\t\t\tcontinue;\n+\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: state = %lu, queue_index = %d, reg_idx = %d\\n\",\n+\t\t\t\t i, *xdp_ring->state,\n+\t\t\t\t xdp_ring->queue_index,\n+\t\t\t\t xdp_ring->reg_idx);\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: next_to_use = %d, next_to_clean = %d, ring_active = %i\\n\",\n+\t\t\t\t i,\n+\t\t\t\t xdp_ring->next_to_use,\n+\t\t\t\t xdp_ring->next_to_clean,\n+\t\t\t\t xdp_ring->ring_active);\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: tx_stats: packets = %lld, bytes = %lld, restart_queue = %lld\\n\",\n+\t\t\t\t i, xdp_ring->stats.packets,\n+\t\t\t\t xdp_ring->stats.bytes,\n+\t\t\t\t xdp_ring->tx_stats.restart_queue);\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: tx_stats: tx_busy = %lld, tx_done_old = %lld\\n\",\n+\t\t\t\t i,\n+\t\t\t\t xdp_ring->tx_stats.tx_busy,\n+\t\t\t\t xdp_ring->tx_stats.tx_done_old);\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: size = %i\\n\",\n+\t\t\t\t i, xdp_ring->size);\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: DCB tc = %d\\n\",\n+\t\t\t\t i, xdp_ring->dcb_tc);\n+\t\t\tdev_info(&pf->pdev->dev,\n+\t\t\t\t \"    xdp_rings[%i]: itr_setting = %d (%s)\\n\",\n+\t\t\t\t i, xdp_ring->itr_setting,\n+\t\t\t\t ITR_IS_DYNAMIC(xdp_ring->itr_setting) ?\n+\t\t\t\t \"dynamic\" : \"fixed\");\n+\t\t}\n+\t}\n \trcu_read_unlock();\n \tdev_info(&pf->pdev->dev,\n \t\t \"    work_limit = %d\\n\",\n",
    "prefixes": [
        "net-next",
        "v2",
        "2/3"
    ]
}