get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114682,
    "url": "http://patchwork.dpdk.org/api/patches/114682/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220805220029.1096212-2-cristian.dumitrescu@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220805220029.1096212-2-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220805220029.1096212-2-cristian.dumitrescu@intel.com",
    "date": "2022-08-05T22:00:20",
    "name": "[01/10] port: add output port packet drop statistics couters",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c565a8a1453f7156e2111e0f763a64b185d95b5e",
    "submitter": {
        "id": 19,
        "url": "http://patchwork.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220805220029.1096212-2-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 24217,
            "url": "http://patchwork.dpdk.org/api/series/24217/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24217",
            "date": "2022-08-05T22:00:23",
            "name": "port: implement output port non-blocking behavior",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/24217/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/114682/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/114682/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 99506A00C4;\n\tSat,  6 Aug 2022 00:01:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B9A4042C38;\n\tSat,  6 Aug 2022 00:00:40 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 978AB40697\n for <dev@dpdk.org>; Sat,  6 Aug 2022 00:00:36 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Aug 2022 15:00:31 -0700",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by FMSMGA003.fm.intel.com with ESMTP; 05 Aug 2022 15:00:31 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1659736836; x=1691272836;\n h=from:to:subject:date:message-id:in-reply-to:references:\n mime-version:content-transfer-encoding;\n bh=/PMF7LK3Rss+u7W5zvSXLq6pGHQrQX8k9ZYCmTiY9q0=;\n b=DxoPLhaWj3/fNWwWZSVJAKmDAS/pycinEhurFpwVIuGFwzE8MRdDFuPA\n /Fmd5wdFDLZi2oJqq/k8XJi0FYmpAlsFX3CKMRYhl1JphOgbCZItkrc8P\n 3IVVBvKlVETZnUB4J6E2XvBtXBQBjksVR3sj4vRCKj5v+w2F4PNxnfYTq\n 4Gx5IPAyLyTXjBk/UsBnyoW1hf0Y7ktPHJL9SC0Z+Xf1q8/KobTAQvCAQ\n ctWVesENfs90qlthFEYUhAU0t/EGI1O+ZloemSh6gisR21rPCzVrGLVa4\n xt5XPqSuXVKnC6R7EY3SxZ5mCiUPDhRGS1YXSY8sAzpi2rhOwNfbNwpc0 Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10430\"; a=\"273348509\"",
            "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"273348509\"",
            "E=Sophos;i=\"5.93,217,1654585200\"; d=\"scan'208\";a=\"693137542\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Subject": "[PATCH 01/10] port: add output port packet drop statistics couters",
        "Date": "Fri,  5 Aug 2022 22:00:20 +0000",
        "Message-Id": "<20220805220029.1096212-2-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220805220029.1096212-1-cristian.dumitrescu@intel.com>",
        "References": "<20220805220029.1096212-1-cristian.dumitrescu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Add packet drop statistics counters for the output ports. Required by\nthe non-blocking output port behavior where the packets that cannot\nbe sent at the time of the operation are dropped as opposed to the\nsend operation being retried potentially forever for the same packets.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n lib/port/rte_swx_port.h | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/port/rte_swx_port.h b/lib/port/rte_swx_port.h\nindex 5e29100f59..1dbd95ae87 100644\n--- a/lib/port/rte_swx_port.h\n+++ b/lib/port/rte_swx_port.h\n@@ -185,12 +185,18 @@ typedef void\n \n /** Output port statistics counters. */\n struct rte_swx_port_out_stats {\n-\t/** Number of packets. */\n+\t/** Number of packets successfully transmitted. */\n \tuint64_t n_pkts;\n \n-\t/** Number of bytes. */\n+\t/** Number of bytes successfully transmitted. */\n \tuint64_t n_bytes;\n \n+\t/** Number of packets dropped. */\n+\tuint64_t n_pkts_drop;\n+\n+\t/** Number of bytes dropped. */\n+\tuint64_t n_bytes_drop;\n+\n \t/** Number of packets cloned successfully. */\n \tuint64_t n_pkts_clone;\n \n",
    "prefixes": [
        "01/10"
    ]
}