get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17027,
    "url": "https://patches.dpdk.org/api/patches/17027/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/b3f6b54c56da71fd502aa080752d47370144a72d.1479309720.git.adrien.mazarguil@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": "<b3f6b54c56da71fd502aa080752d47370144a72d.1479309720.git.adrien.mazarguil@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/b3f6b54c56da71fd502aa080752d47370144a72d.1479309720.git.adrien.mazarguil@6wind.com",
    "date": "2016-11-16T16:23:29",
    "name": "[dpdk-dev,03/22] cmdline: add alignment constraint",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4b33e6675c3da958f498c25315f9b816849373cb",
    "submitter": {
        "id": 165,
        "url": "https://patches.dpdk.org/api/people/165/?format=api",
        "name": "Adrien Mazarguil",
        "email": "adrien.mazarguil@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/b3f6b54c56da71fd502aa080752d47370144a72d.1479309720.git.adrien.mazarguil@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/17027/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/17027/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 3237D58CB;\n\tWed, 16 Nov 2016 17:25:01 +0100 (CET)",
            "from mail-wm0-f54.google.com (mail-wm0-f54.google.com\n\t[74.125.82.54]) by dpdk.org (Postfix) with ESMTP id CE548567E\n\tfor <dev@dpdk.org>; Wed, 16 Nov 2016 17:24:05 +0100 (CET)",
            "by mail-wm0-f54.google.com with SMTP id f82so83915009wmf.1\n\tfor <dev@dpdk.org>; Wed, 16 Nov 2016 08:24:05 -0800 (PST)",
            "from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by smtp.gmail.com with ESMTPSA id\n\tj1sm22631586wjm.26.2016.11.16.08.24.04\n\t(version=TLS1_2 cipher=AES128-SHA bits=128/128);\n\tWed, 16 Nov 2016 08:24:04 -0800 (PST)"
        ],
        "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=+8GUAyymP84eUgMhSLwntCNOdrjSS/jJDwQc29owzig=;\n\tb=YFGZMgzSFFWx1tU1qFs3LCREwzzMOiDNv5wc9IUJUdvMhQhJAazSe3cbe8z5pxiGJV\n\tddBGc42DyAagaUA5ESJ75jdsQEjJVyotAA/qab5WFgZ5VKXrWmQrkzmDI5q+H11Ojt8m\n\taDFe0fnae4EfqkxhqFJGfcdlVNpTGtdsy7MNvIISpbdFUgYPs2yaIkjvngx7aHSvUk1T\n\tXbjJ8xZpev2qZWB9WU/WE/X3mQ8Z0EHSmneyBbZKgDAp2GLPOAFJaTpxK//rHBYo5Uqc\n\tl91auzeY0P5Ss07rbypAx605a8HdgJfS4/UGsAabxWim9pA0bgUhZFjzaw/4twT8JJvH\n\tb1Ag==",
        "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=+8GUAyymP84eUgMhSLwntCNOdrjSS/jJDwQc29owzig=;\n\tb=HMlNNnCHmk7ygmQdui8ECZkoM9bIW+yIRbvam5BFg2vpomq3pf2FVCkKlUzt5+phhQ\n\t5k5rwS2PdJvUotSoqHNsjS4vHzAdR99qdF+aJh/Lq2AaL9uZe6lKfuGPM19KLlgi3gHM\n\t8xo2tzqUhYNMEslp3NAt4rpBP2rWXn4XEBZGv6DYf3hZ1lA1yty8liGk/rTyrOQIe1Pq\n\t/C26CNpR+epb2uOtPlrU6ICGrjxQSmmfttA//ElX6Hg71iHAFAkmNh1HPRuzjDeTBibN\n\tMd9EosxL7A9nqvH2qRZiWZHO6awkaTqDQDgylxPgkU73QYDIOgo7Lw9APOBAbC8j/hqp\n\tceNQ==",
        "X-Gm-Message-State": "ABUngvfFbEvrB7CD+IaKIlOA1F4K1m57Rv6Mu+jzTnx0z1H4h8voUi9hTtPlWx6JxDQWoDME",
        "X-Received": "by 10.28.128.211 with SMTP id b202mr11285359wmd.7.1479313445566; \n\tWed, 16 Nov 2016 08:24:05 -0800 (PST)",
        "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Thomas Monjalon <thomas.monjalon@6wind.com>,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>,\n\tOlivier Matz <olivier.matz@6wind.com>",
        "Date": "Wed, 16 Nov 2016 17:23:29 +0100",
        "Message-Id": "<b3f6b54c56da71fd502aa080752d47370144a72d.1479309720.git.adrien.mazarguil@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<cover.1479309719.git.adrien.mazarguil@6wind.com>",
        "References": "<cover.1471632644.git.adrien.mazarguil@6wind.com>\n\t<cover.1479309719.git.adrien.mazarguil@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH 03/22] cmdline: add alignment constraint",
        "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": "This prevents sigbus errors on architectures that cannot handle unexpected\nunaligned accesses to the output buffer.\n\nSigned-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>\n---\n lib/librte_cmdline/cmdline_parse.c | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_cmdline/cmdline_parse.c b/lib/librte_cmdline/cmdline_parse.c\nindex 14f5553..763c286 100644\n--- a/lib/librte_cmdline/cmdline_parse.c\n+++ b/lib/librte_cmdline/cmdline_parse.c\n@@ -255,7 +255,10 @@ cmdline_parse(struct cmdline *cl, const char * buf)\n \tunsigned int inst_num=0;\n \tcmdline_parse_inst_t *inst;\n \tconst char *curbuf;\n-\tchar result_buf[CMDLINE_PARSE_RESULT_BUFSIZE];\n+\tunion {\n+\t\tchar buf[CMDLINE_PARSE_RESULT_BUFSIZE];\n+\t\tlong double align; /* strong alignment constraint for buf */\n+\t} result;\n \tcmdline_parse_token_hdr_t *dyn_tokens[CMDLINE_PARSE_DYNAMIC_TOKENS];\n \tvoid (*f)(void *, struct cmdline *, void *) = NULL;\n \tvoid *data = NULL;\n@@ -318,7 +321,7 @@ cmdline_parse(struct cmdline *cl, const char * buf)\n \t\tdebug_printf(\"INST %d\\n\", inst_num);\n \n \t\t/* fully parsed */\n-\t\ttok = match_inst(inst, buf, 0, result_buf, sizeof(result_buf),\n+\t\ttok = match_inst(inst, buf, 0, result.buf, sizeof(result.buf),\n \t\t\t\t &dyn_tokens);\n \n \t\tif (tok > 0) /* we matched at least one token */\n@@ -353,7 +356,7 @@ cmdline_parse(struct cmdline *cl, const char * buf)\n \n \t/* call func */\n \tif (f) {\n-\t\tf(result_buf, cl, data);\n+\t\tf(result.buf, cl, data);\n \t}\n \n \t/* no match */\n",
    "prefixes": [
        "dpdk-dev",
        "03/22"
    ]
}