get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 14007,
    "url": "https://patches.dpdk.org/api/patches/14007/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1466370670-20981-1-git-send-email-thomas.monjalon@6wind.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": "<1466370670-20981-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1466370670-20981-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2016-06-19T21:11:10",
    "name": "[dpdk-dev] eal/linux: fix build with glibc < 2.12",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f381f3042bfce7bf87589a218c8575f90293ccc1",
    "submitter": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1466370670-20981-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/14007/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/14007/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id CB838961F;\n\tSun, 19 Jun 2016 23:11:34 +0200 (CEST)",
            "from mail-wm0-f48.google.com (mail-wm0-f48.google.com\n\t[74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 21721960C\n\tfor <dev@dpdk.org>; Sun, 19 Jun 2016 23:11:33 +0200 (CEST)",
            "by mail-wm0-f48.google.com with SMTP id r201so36818665wme.1\n\tfor <dev@dpdk.org>; Sun, 19 Jun 2016 14:11:33 -0700 (PDT)",
            "from XPS13.localdomain (184.203.134.77.rev.sfr.net.\n\t[77.134.203.184]) by smtp.gmail.com with ESMTPSA id\n\tu64sm10224118wmd.8.2016.06.19.14.11.31\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tSun, 19 Jun 2016 14:11:31 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=3KIJB0tiFoXJiWwIylo6r+ONChmrHKJR32rhp+tPW9s=;\n\tb=O6cXUdcwtfmHP1jZWUf8Tdnf0+8qKecRFrqFxdFeqwUiA0QLeLvGWNUfxKyrZ7Qynu\n\tGnUxjDq7QfkI5zl6+bEqZktMnTiQfpk3Fhbur+Eqbp1feIxmG132Kn0gUQv8Mk/3zMWQ\n\t71O1ZsPiY6GB4FlR8TaaOX+/8NiyLZkSg+JiyrXELy3+eh4QC1O0R+5Bos5or2XMYArd\n\tekct+mtY2iMIYOEx7uyJ+7HXhV4/EnXMyTluwXkXUO3AXFkJuuj2UlO88sKWTKianR0N\n\tYGI9yKm8CTQRlUO7qG3nSkXPkylPTtczIWD+dLOuWT97nSGoK2txpEye4V4WYvIGPgcg\n\tQLXA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=3KIJB0tiFoXJiWwIylo6r+ONChmrHKJR32rhp+tPW9s=;\n\tb=CgCW46PD/ruoEThVss/tPTJYQdk+lDJ3MWcSCR177i+VKJGX6JISHem6kZ3BUWXClU\n\tKltt7YUBqkNAAl4nDoXddS/6syvyKMa/go/QzAgAZeXX6Rf9tQMsg8YLqqkDERJ7bNwv\n\tqzLmGiY4YcvFNxga/FsD4pYeQLWxE9zBUY7EKlJnDCzlZh/10+nR7YdkfdaVVboc7XkV\n\tT4zDGnqK9MWFR5xEVZtZZ9OIod72zvsRUc1UKv+4zf4rbeyFen+KANMk65ccLdA/efp3\n\tqrfdxjkBQJNTG9OaGrwjCxFGfhNFHRykI1ScbK6MUovnX7z/Fv27qjrqMD6+yKxhYyhk\n\tSM7Q==",
        "X-Gm-Message-State": "ALyK8tLWVCx29TT6DzmR32IikCC5act+KtKx06O773dfq03I2kGSGbYpzrC/DyaxxeIwNCov",
        "X-Received": "by 10.194.153.98 with SMTP id vf2mr11292067wjb.72.1466370692761; \n\tSun, 19 Jun 2016 14:11:32 -0700 (PDT)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "david.marchand@6wind.com",
        "Cc": "dev@dpdk.org",
        "Date": "Sun, 19 Jun 2016 23:11:10 +0200",
        "Message-Id": "<1466370670-20981-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "In-Reply-To": "<2401799.KuipojHmpA@xps13>",
        "References": "<2401799.KuipojHmpA@xps13>",
        "Subject": "[dpdk-dev] [PATCH] eal/linux: fix build with glibc < 2.12",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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 function rte_thread_setname needs glibc 2.12,\notherwise it returns -1 without using any parameter.\nThe macro RTE_SET_USED avoids an \"unused parameter\" warning.\n\nFixes: 3901ed99c2f8 (\"eal: fix thread naming on FreeBSD\")\n\nSigned-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n lib/librte_eal/linuxapp/eal/eal_thread.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_thread.c b/lib/librte_eal/linuxapp/eal/eal_thread.c\nindex 8c3bf03..9f88530 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_thread.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_thread.c\n@@ -206,5 +206,7 @@ int rte_thread_setname(pthread_t id, const char *name)\n \tret = pthread_setname_np(id, name);\n #endif\n #endif\n+\tRTE_SET_USED(id);\n+\tRTE_SET_USED(name);\n \treturn ret;\n }\n",
    "prefixes": [
        "dpdk-dev"
    ]
}