get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 48660,
    "url": "https://patches.dpdk.org/api/patches/48660/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181212064733.1008-1-gavin.hu@arm.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": "<20181212064733.1008-1-gavin.hu@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181212064733.1008-1-gavin.hu@arm.com",
    "date": "2018-12-12T06:47:31",
    "name": "[v2,0/2] add rte ring reset api and use it to flush a ring by hash",
    "commit_ref": null,
    "pull_url": null,
    "state": null,
    "archived": false,
    "hash": null,
    "submitter": {
        "id": 1018,
        "url": "https://patches.dpdk.org/api/people/1018/?format=api",
        "name": "Gavin Hu",
        "email": "gavin.hu@arm.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181212064733.1008-1-gavin.hu@arm.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/48660/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/48660/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 792401B150;\n\tWed, 12 Dec 2018 07:47:49 +0100 (CET)",
            "from foss.arm.com (foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id 35C711B14D\n\tfor <dev@dpdk.org>; Wed, 12 Dec 2018 07:47:48 +0100 (CET)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 77B0CA78;\n\tTue, 11 Dec 2018 22:47:47 -0800 (PST)",
            "from net-debian.shanghai.arm.com (net-debian.shanghai.arm.com\n\t[10.169.36.53])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\t4A13D3F614; Tue, 11 Dec 2018 22:47:46 -0800 (PST)"
        ],
        "From": "Gavin Hu <gavin.hu@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "nd@arm.com, Gavin Hu <gavin.hu@arm.com>, thomas@monjalon.net,\n\tjerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com,\n\tHonnappa.Nagarahalli@arm.com",
        "Date": "Wed, 12 Dec 2018 14:47:31 +0800",
        "Message-Id": "<20181212064733.1008-1-gavin.hu@arm.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20181212062404.30243-1-gavin.hu@arm.com>",
        "References": "<20181212062404.30243-1-gavin.hu@arm.com>",
        "Subject": "[dpdk-dev] [PATCH v2 0/2] add rte ring reset api and use it to\n\tflush a ring by hash",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "V2: fix the coding style issue(commit message line too long)\n\nV1: To flush a ring not in use, dequeue one by one is wasting cpu cycles.\nThe patch is to just resetting the head and tail indices to save cpu\ncycle.\n\nGavin Hu (2):\n  ring: add reset api to flush the ring when not in use\n  hash: flush the rings instead of dequeuing one by one\n\n lib/librte_hash/Makefile             |  2 +-\n lib/librte_hash/rte_cuckoo_hash.c    | 11 ++++-------\n lib/librte_ring/rte_ring.h           | 20 ++++++++++++++++++++\n lib/librte_ring/rte_ring_version.map |  7 +++++++\n 4 files changed, 32 insertions(+), 8 deletions(-)",
    "diff": null,
    "prefixes": [
        "v2",
        "0/2"
    ]
}