get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1314353,
    "url": "http://patchwork.ozlabs.org/api/patches/1314353/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200622124624.18847-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": "<20200622124624.18847-2-ciara.loftus@intel.com>",
    "list_archive_url": null,
    "date": "2020-06-22T12:46:23",
    "name": "[net-next,2/3] i40e: add xdp ring statistics to dump vsi debug output",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200622124624.18847-2-ciara.loftus@intel.com/mbox/",
    "series": [
        {
            "id": 184976,
            "url": "http://patchwork.ozlabs.org/api/series/184976/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=184976",
            "date": "2020-06-22T12:46:22",
            "name": "[net-next,1/3] i40e: add xdp ring statistics to vsi stats",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/184976/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1314353/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1314353/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.137; helo=fraxinus.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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 49r8pS3gkWz9sRf\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 22 Jun 2020 23:07:44 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 5B95F86D3C;\n\tMon, 22 Jun 2020 13:07:42 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id NBjT9QdO0BUH; Mon, 22 Jun 2020 13:07:41 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id D59E7864EA;\n\tMon, 22 Jun 2020 13:07:41 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by ash.osuosl.org (Postfix) with ESMTP id 721671BF390\n for <intel-wired-lan@lists.osuosl.org>; Mon, 22 Jun 2020 13:07:40 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by silver.osuosl.org (Postfix) with ESMTP id 48DD820520\n for <intel-wired-lan@lists.osuosl.org>; Mon, 22 Jun 2020 13:07:40 +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 M+wG+5FApZ3j for <intel-wired-lan@lists.osuosl.org>;\n Mon, 22 Jun 2020 13:07:39 +0000 (UTC)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by silver.osuosl.org (Postfix) with ESMTPS id 46B2A203A5\n for <intel-wired-lan@lists.osuosl.org>; Mon, 22 Jun 2020 13:07:39 +0000 (UTC)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Jun 2020 06:07:39 -0700",
            "from silpixa00399839.ir.intel.com (HELO localhost.localdomain)\n ([10.237.222.8])\n by FMSMGA003.fm.intel.com with ESMTP; 22 Jun 2020 06:07:38 -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 gDIMajjW6X4Hg9zpzB2vgQ2Fi5VGtwcYe74y3SJjVzGo5NH+nQJhX/4r8I3nW0BMYzQ7OfBzpJ\n vazFZ0dmSOoQ==",
            "\n bvQ71dH41y3YW65ytrKt+Pi3AN0MgVr7GQ4WfnPtEg6D/p8p5Tlf2O4u/GbB7kimnjItoVd5AN\n /EePUlo04ISg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9659\"; a=\"143712444\"",
            "E=Sophos;i=\"5.75,266,1589266800\"; d=\"scan'208\";a=\"143712444\"",
            "E=Sophos;i=\"5.75,266,1589266800\"; d=\"scan'208\";a=\"318774412\""
        ],
        "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": "Mon, 22 Jun 2020 12:46:23 +0000",
        "Message-Id": "<20200622124624.18847-2-ciara.loftus@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200622124624.18847-1-ciara.loftus@intel.com>",
        "References": "<20200622124624.18847-1-ciara.loftus@intel.com>",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH net-next 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",
        "2/3"
    ]
}