get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 39754,
    "url": "https://patches.dpdk.org/api/patches/39754/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180510235836.1099-2-thomas@monjalon.net/",
    "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": "<20180510235836.1099-2-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180510235836.1099-2-thomas@monjalon.net",
    "date": "2018-05-10T23:58:26",
    "name": "[dpdk-dev,v3,01/11] ethdev: fix debug log of owner id",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a5c0f932f474a23872af197f67a7ac2802594366",
    "submitter": {
        "id": 685,
        "url": "https://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180510235836.1099-2-thomas@monjalon.net/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/39754/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/39754/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 23CD11BBA8;\n\tFri, 11 May 2018 01:58:49 +0200 (CEST)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n\t[66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 9AE121BB8F\n\tfor <dev@dpdk.org>; Fri, 11 May 2018 01:58:45 +0200 (CEST)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 429EB21995;\n\tThu, 10 May 2018 19:58:45 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n\tby compute1.internal (MEProxy); Thu, 10 May 2018 19:58:45 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id 581E7E4393;\n\tThu, 10 May 2018 19:58:44 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n\tcc:date:from:in-reply-to:message-id:references:subject:to\n\t:x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=7+4w3gqEIJ01/T\n\tF/2jTvWtabFya/cR0RgNJfB9r+WyE=; b=KTnIQJF3dgjFDWVNyC61yOnXdm7rfi\n\tH3BQSDBUAGLtdCcTX45tg+cadwb/MzUotIToZq4d1vBLbF9Y/9Qvgr6UChGFt+L5\n\tNv4TWl6Dk0l52CG7A+J76ZRWBnsZJUTBQCg/TIzbKl8/BkUhieTDbvn22s91Cvn5\n\taXRsDcCK8sqIo=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:date:from:in-reply-to:message-id\n\t:references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=\n\tfm2; bh=7+4w3gqEIJ01/TF/2jTvWtabFya/cR0RgNJfB9r+WyE=; b=bAnysK3m\n\tTCUoJJiUSsPsyDRvaQFjkUG98l3ErqQdOzZsDz1gXPiH4plpBaQxAMjRkTW0HZD0\n\tWxT97ac0d4ILrN9zvjRjTD+k27kteALJimNsp5sw/x5jCz3oz/Sk+J+Jgo5cqx3k\n\tQ6LrqF1NwBPjBunfnFUyyXtUdlblloCtxE5MR9QVO0z/YkatC6ZV2CO4JklRj8MV\n\tlc+Ckg7p/FNxD+ayYLI9KsAWZ6ZOBTvbw/0MvYm+Q7Tmwm7RO/JA/Ku2eN+g0yUJ\n\tcVGdW0XC1gBHA14CJIh0CV+cfTRwuGjSAs6aAkNGLj2Kf5RPYjCnAS8WWjAM4rFE\n\tnYWkBss+w6zk/Q=="
        ],
        "X-ME-Sender": "<xms:tdz0WnuEj_lAncJRIM9Tft7SKlBcSV3k9Kfick0Ey-uOmA0mMA_4Fg>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "matan@mellanox.com, arybchenko@solarflare.com, stephen@networkplumber.org,\n\tferruh.yigit@intel.com",
        "Date": "Fri, 11 May 2018 01:58:26 +0200",
        "Message-Id": "<20180510235836.1099-2-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.16.2",
        "In-Reply-To": "<20180510235836.1099-1-thomas@monjalon.net>",
        "References": "<20180509094337.26112-1-thomas@monjalon.net>\n\t<20180510235836.1099-1-thomas@monjalon.net>",
        "Subject": "[dpdk-dev] [PATCH v3 01/11] ethdev: fix debug log of owner id",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The owner id is 64-bit.\nOn 32-bit environment, it must be printed with PRIX64.\n\nFixes: 5b7ba31148a8 (\"ethdev: add port ownership\")\nCc: stable@dpdk.org\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nReviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>\nReviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>\nReviewed-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/librte_ethdev/rte_ethdev.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c\nindex ae239f97f..d0eba26ab 100644\n--- a/lib/librte_ethdev/rte_ethdev.c\n+++ b/lib/librte_ethdev/rte_ethdev.c\n@@ -376,7 +376,7 @@ rte_eth_is_valid_owner_id(uint64_t owner_id)\n {\n \tif (owner_id == RTE_ETH_DEV_NO_OWNER ||\n \t    rte_eth_dev_shared_data->next_owner_id <= owner_id) {\n-\t\tRTE_PMD_DEBUG_TRACE(\"Invalid owner_id=%016lX.\\n\", owner_id);\n+\t\tRTE_PMD_DEBUG_TRACE(\"Invalid owner_id=%016\"PRIX64\".\\n\", owner_id);\n \t\treturn 0;\n \t}\n \treturn 1;\n@@ -426,7 +426,7 @@ _rte_eth_dev_owner_set(const uint16_t port_id, const uint64_t old_owner_id,\n \tport_owner = &rte_eth_devices[port_id].data->owner;\n \tif (port_owner->id != old_owner_id) {\n \t\tRTE_PMD_DEBUG_TRACE(\"Cannot set owner to port %d already owned\"\n-\t\t\t\t    \" by %s_%016lX.\\n\", port_id,\n+\t\t\t\t    \" by %s_%016\"PRIX64\".\\n\", port_id,\n \t\t\t\t    port_owner->name, port_owner->id);\n \t\treturn -EPERM;\n \t}\n@@ -439,7 +439,7 @@ _rte_eth_dev_owner_set(const uint16_t port_id, const uint64_t old_owner_id,\n \n \tport_owner->id = new_owner->id;\n \n-\tRTE_PMD_DEBUG_TRACE(\"Port %d owner is %s_%016lX.\\n\", port_id,\n+\tRTE_PMD_DEBUG_TRACE(\"Port %d owner is %s_%016\"PRIX64\".\\n\", port_id,\n \t\t\t    new_owner->name, new_owner->id);\n \n \treturn 0;\n@@ -491,8 +491,8 @@ rte_eth_dev_owner_delete(const uint64_t owner_id)\n \t\tRTE_ETH_FOREACH_DEV_OWNED_BY(port_id, owner_id)\n \t\t\tmemset(&rte_eth_devices[port_id].data->owner, 0,\n \t\t\t       sizeof(struct rte_eth_dev_owner));\n-\t\tRTE_PMD_DEBUG_TRACE(\"All port owners owned by %016X identifier\"\n-\t\t\t\t    \" have removed.\\n\", owner_id);\n+\t\tRTE_PMD_DEBUG_TRACE(\"All port owners owned by %016\"PRIX64\n+\t\t\t\t\" identifier have removed.\\n\", owner_id);\n \t}\n \n \trte_spinlock_unlock(&rte_eth_dev_shared_data->ownership_lock);\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "01/11"
    ]
}