get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 95428,
    "url": "https://patches.dpdk.org/api/patches/95428/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210706202841.661302-8-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.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": "<20210706202841.661302-8-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210706202841.661302-8-bruce.richardson@intel.com",
    "date": "2021-07-06T20:28:39",
    "name": "[RFC,UPDATE,7/9] dmadev: stats structure updates",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "ad933ef6728db27b4cf856b6d03cc18b507a5126",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210706202841.661302-8-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 17674,
            "url": "https://patches.dpdk.org/api/series/17674/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17674",
            "date": "2021-07-06T20:28:32",
            "name": "dmadev rfc suggested updates",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/17674/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/95428/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/95428/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 3BD79A0C48;\n\tTue,  6 Jul 2021 22:29:45 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F035841421;\n\tTue,  6 Jul 2021 22:29:19 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 87CBC413F8\n for <dev@dpdk.org>; Tue,  6 Jul 2021 22:29:16 +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 06 Jul 2021 13:29:16 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.29])\n by FMSMGA003.fm.intel.com with ESMTP; 06 Jul 2021 13:29:14 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10037\"; a=\"196470353\"",
            "E=Sophos;i=\"5.83,329,1616482800\"; d=\"scan'208\";a=\"196470353\"",
            "E=Sophos;i=\"5.83,329,1616482800\"; d=\"scan'208\";a=\"486522089\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Chengwen Feng <fengchengwen@huawei.com>,\n Jerin Jacob <jerinjacobk@gmail.com>, Jerin Jacob <jerinj@marvell.com>,\n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Date": "Tue,  6 Jul 2021 21:28:39 +0100",
        "Message-Id": "<20210706202841.661302-8-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20210706202841.661302-1-bruce.richardson@intel.com>",
        "References": "<1625231891-2963-1-git-send-email-fengchengwen@huawei.com>\n <20210706202841.661302-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [RFC UPDATE PATCH 7/9] dmadev: stats structure updates",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Drop the failed enqueue count since that is best tracked by the\napplication so that retries of the same job can be counted as desired by\nthe app developer. Since the \"doorbell\" function is separate from the\nactual functions to enqueue descriptors, track a separate stat for jobs\nwhich were submitted to hardware, in case the \"enqueued\" count includes\njobs which were not yet \"doorbelled\".\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/dmadev/rte_dmadev.h | 12 ++++--------\n 1 file changed, 4 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h\nindex eb78f3805..bdb531a53 100644\n--- a/lib/dmadev/rte_dmadev.h\n+++ b/lib/dmadev/rte_dmadev.h\n@@ -768,14 +768,10 @@ rte_dmadev_completed_fails(uint16_t dev_id, uint16_t vq_id,\n }\n \n struct rte_dmadev_stats {\n-\tuint64_t enqueue_fail_count;\n-\t/**< Conut of all operations which failed enqueued */\n-\tuint64_t enqueued_count;\n-\t/**< Count of all operations which successful enqueued */\n-\tuint64_t completed_fail_count;\n-\t/**< Count of all operations which failed to complete */\n-\tuint64_t completed_count;\n-\t/**< Count of all operations which successful complete */\n+\tuint64_t enqueued_count;       /**< Count of operations which were successful enqueued */\n+\tuint64_t submitted_count;      /**< Count of operations which were submitted to hardware */\n+\tuint64_t completed_fail_count; /**< Count of operations which failed to complete */\n+\tuint64_t completed_count;      /**< Count of operations which successful complete */\n };\n \n /**\n",
    "prefixes": [
        "RFC",
        "UPDATE",
        "7/9"
    ]
}