get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81696,
    "url": "http://patches.dpdk.org/api/patches/81696/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/0c755de289f228e67897818639a171cbf1d768ae.1603207676.git.wangyunjian@huawei.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<0c755de289f228e67897818639a171cbf1d768ae.1603207676.git.wangyunjian@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/0c755de289f228e67897818639a171cbf1d768ae.1603207676.git.wangyunjian@huawei.com",
    "date": "2020-10-21T11:19:23",
    "name": "[v5,2/3] eal: return error code when failure",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e79e98169610589a42d2100a4c347be4bf0de4f3",
    "submitter": {
        "id": 551,
        "url": "http://patches.dpdk.org/api/people/551/?format=api",
        "name": "Yunjian Wang",
        "email": "wangyunjian@huawei.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/0c755de289f228e67897818639a171cbf1d768ae.1603207676.git.wangyunjian@huawei.com/mbox/",
    "series": [
        {
            "id": 13175,
            "url": "http://patches.dpdk.org/api/series/13175/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13175",
            "date": "2020-10-21T11:18:10",
            "name": "fixes for device event",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/13175/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/81696/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/81696/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 58F2BA04DF;\n\tWed, 21 Oct 2020 13:19:41 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B2CB6AC62;\n\tWed, 21 Oct 2020 13:19:36 +0200 (CEST)",
            "from huawei.com (szxga05-in.huawei.com [45.249.212.191])\n by dpdk.org (Postfix) with ESMTP id 78350AC62;\n Wed, 21 Oct 2020 13:19:34 +0200 (CEST)",
            "from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60])\n by Forcepoint Email with ESMTP id 9E1A86D94F940B71DDD3;\n Wed, 21 Oct 2020 19:19:32 +0800 (CST)",
            "from localhost (10.174.187.156) by DGGEMS404-HUB.china.huawei.com\n (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Wed, 21 Oct 2020\n 19:19:24 +0800"
        ],
        "From": "wangyunjian <wangyunjian@huawei.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<david.marchand@redhat.com>, <jia.guo@intel.com>, <jerinj@marvell.com>,\n <jerry.lilijun@huawei.com>, <xudingke@huawei.com>, Yunjian Wang\n <wangyunjian@huawei.com>, <stable@dpdk.org>",
        "Date": "Wed, 21 Oct 2020 19:19:23 +0800",
        "Message-ID": "\n <0c755de289f228e67897818639a171cbf1d768ae.1603207676.git.wangyunjian@huawei.com>",
        "X-Mailer": "git-send-email 1.9.5.msysgit.1",
        "In-Reply-To": "<cover.1603207676.git.wangyunjian@huawei.com>",
        "References": "<cover.1603207676.git.wangyunjian@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.174.187.156]",
        "X-CFilter-Loop": "Reflected",
        "Subject": "[dpdk-dev]  [PATCH v5 2/3] eal: return error code when failure",
        "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 <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": "From: Yunjian Wang <wangyunjian@huawei.com>\n\nFix return value, using -EAGAIN instead of 0 when the callback is busy\nand using -ENOENT instead of 0 when the callback is not found.\n\nFixes: a753e53d517b (\"eal: add device event monitor framework\")\nCc: stable@dpdk.org\n\nSigned-off-by: Yunjian Wang <wangyunjian@huawei.com>\nAcked-by: Jeff Guo <jia.guo@intel.com>\n---\n lib/librte_eal/common/eal_common_dev.c | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_dev.c b/lib/librte_eal/common/eal_common_dev.c\nindex 363a2ca95e..d990bfd20d 100644\n--- a/lib/librte_eal/common/eal_common_dev.c\n+++ b/lib/librte_eal/common/eal_common_dev.c\n@@ -530,9 +530,15 @@ rte_dev_event_callback_unregister(const char *device_name,\n \t\t\tfree(event_cb);\n \t\t\tret++;\n \t\t} else {\n-\t\t\tcontinue;\n+\t\t\tret = -EAGAIN;\n+\t\t\tbreak;\n \t\t}\n \t}\n+\n+\t/* this callback is not be registered */\n+\tif (ret == 0)\n+\t\tret = -ENOENT;\n+\n \trte_spinlock_unlock(&dev_event_lock);\n \treturn ret;\n }\n",
    "prefixes": [
        "v5",
        "2/3"
    ]
}