get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42173,
    "url": "http://patches.dpdk.org/api/patches/42173/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/5f7625162a33c5814f4760babcc1854d260fbed6.1530655929.git.gaetan.rivet@6wind.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": "<5f7625162a33c5814f4760babcc1854d260fbed6.1530655929.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/5f7625162a33c5814f4760babcc1854d260fbed6.1530655929.git.gaetan.rivet@6wind.com",
    "date": "2018-07-03T22:14:47",
    "name": "[v9,04/27] kvargs: introduce a more flexible parsing function",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f2286daa9ca64815195b8aec2f303ecfcdc0e44f",
    "submitter": {
        "id": 269,
        "url": "http://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/5f7625162a33c5814f4760babcc1854d260fbed6.1530655929.git.gaetan.rivet@6wind.com/mbox/",
    "series": [
        {
            "id": 383,
            "url": "http://patches.dpdk.org/api/series/383/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=383",
            "date": "2018-07-03T22:14:43",
            "name": "Device querying",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/383/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42173/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42173/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 3A5571BE4C;\n\tWed,  4 Jul 2018 00:15:43 +0200 (CEST)",
            "from mail-wr0-f194.google.com (mail-wr0-f194.google.com\n\t[209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 784401BE3F\n\tfor <dev@dpdk.org>; Wed,  4 Jul 2018 00:15:39 +0200 (CEST)",
            "by mail-wr0-f194.google.com with SMTP id q10-v6so3379584wrd.4\n\tfor <dev@dpdk.org>; Tue, 03 Jul 2018 15:15:39 -0700 (PDT)",
            "from bidouze.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\ti190-v6sm3771084wmd.33.2018.07.03.15.15.37\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 03 Jul 2018 15:15:37 -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\t:in-reply-to:references;\n\tbh=bZU/7VKOPDsaUPRBk2F/ugqQ52BHubQjw6+LsmQ5bAE=;\n\tb=ECImR+6w+iPq8iR78PyGEQzuP27Dmx7QdbW46yec0Xd8uE5OxLlJ6cRoSBKznhAqvo\n\t14RZLR3tTUQu4LPrNupwpASJcn2vau4M/kF7XlZ8h87FKvf0rAfFfIipLmv80OXwQOYr\n\t3HxknrStAijzjI4mnn07LfAAOGIEeCOuM1g4Jz1V9z7tt9dC63npHvkbZElYv+stlOHE\n\t04vPQe3i6K0KcF0ztjpTCJsM+movsD97Bsvtv2K3GpY8wnp12Qk5jWf84guWzWG38iuR\n\tnqse6jM9lFTrgqN9TD5k8rMgRUUai+hZRdKZCH0NprNsDdfB4fa5xKb9TkklCQFtEwDV\n\tQDdA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:in-reply-to:references;\n\tbh=bZU/7VKOPDsaUPRBk2F/ugqQ52BHubQjw6+LsmQ5bAE=;\n\tb=WG7dfPvP9SRlSgVPQRZGtjz7sY1oFezl9vkfH0TQ7vCphGh2L9pO1evai1DaipzzmE\n\t75are8ivf2L36vf0Ad7CKo9SxzLSouP/PBBHOoIOlNzu/QyB3ZGVaAqC5gCxBItHIL8a\n\tIRMZMkYZfpSSUhjiaxp/cN6FsdIpleCSPyHalB88Yg2BNgJahEeAFo0B71OZwYv+8TWj\n\tzAv/Ir3Q2w/DyZnPajWAhecUYFyX9p+sJh9H1+JzlypVWAI8rsJ8sTwC6DJcx+oi7pyJ\n\tAqIlkUD5uRpwg5VtGJG9+QZEiCuDulhK3fw/UFHUIRbAhEb4+NWukJizzU3w+6o9ZaBp\n\t3hYw==",
        "X-Gm-Message-State": "APt69E2eT6O2YhalT3SQAlsbePeK1++Are9i2VlV/0358S6vSZW+iVmc\n\tSlhcRNXdzIT2jBaygiT7ITgbyIak",
        "X-Google-Smtp-Source": "AAOMgpcOMVCLxUHcgpHA0DVlCCz9Vlsb2TrpYe2ZC1L7XZrIk1JHJuwY5ylnopT44LweVZDG5JerMQ==",
        "X-Received": "by 2002:adf:874b:: with SMTP id\n\t11-v6mr16310149wrz.117.1530656138848; \n\tTue, 03 Jul 2018 15:15:38 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Wed,  4 Jul 2018 00:14:47 +0200",
        "Message-Id": "<5f7625162a33c5814f4760babcc1854d260fbed6.1530655929.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": [
            "<cover.1530655929.git.gaetan.rivet@6wind.com>",
            "<cover.1530655929.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1521124599.git.gaetan.rivet@6wind.com>\n\t<cover.1530655929.git.gaetan.rivet@6wind.com>",
            "<cover.1530655929.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v9 04/27] kvargs: introduce a more flexible\n\tparsing function",
        "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": "This function permits defining additional terminating characters,\nending the parsing to arbitrary delimiters.\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/Makefile                             |  1 +\n lib/librte_kvargs/rte_kvargs.c           | 25 +++++++++++++++++++++++++\n lib/librte_kvargs/rte_kvargs.h           | 30 ++++++++++++++++++++++++++++++\n lib/librte_kvargs/rte_kvargs_version.map |  7 +++++++\n 4 files changed, 63 insertions(+)",
    "diff": "diff --git a/lib/Makefile b/lib/Makefile\nindex e8e903c8f..8a65525cd 100644\n--- a/lib/Makefile\n+++ b/lib/Makefile\n@@ -5,6 +5,7 @@ include $(RTE_SDK)/mk/rte.vars.mk\n \n DIRS-y += librte_compat\n DIRS-$(CONFIG_RTE_LIBRTE_KVARGS) += librte_kvargs\n+DEPDIRS-librte_kvargs := librte_compat\n DIRS-$(CONFIG_RTE_LIBRTE_EAL) += librte_eal\n DIRS-$(CONFIG_RTE_LIBRTE_PCI) += librte_pci\n DEPDIRS-librte_pci := librte_eal\ndiff --git a/lib/librte_kvargs/rte_kvargs.c b/lib/librte_kvargs/rte_kvargs.c\nindex 747f14964..519f77679 100644\n--- a/lib/librte_kvargs/rte_kvargs.c\n+++ b/lib/librte_kvargs/rte_kvargs.c\n@@ -168,3 +168,28 @@ rte_kvargs_parse(const char *args, const char * const valid_keys[])\n \n \treturn kvlist;\n }\n+\n+__rte_experimental\n+struct rte_kvargs *\n+rte_kvargs_parse2(const char *args, const char * const valid_keys[],\n+\t\t  const char *valid_ends)\n+{\n+\tstruct rte_kvargs *kvlist = NULL;\n+\tchar *copy;\n+\tsize_t len;\n+\n+\tif (valid_ends == NULL)\n+\t\treturn rte_kvargs_parse(args, valid_keys);\n+\n+\tcopy = strdup(args);\n+\tif (copy == NULL)\n+\t\treturn NULL;\n+\n+\tlen = strcspn(copy, valid_ends);\n+\tcopy[len] = '\\0';\n+\n+\tkvlist = rte_kvargs_parse(copy, valid_keys);\n+\n+\tfree(copy);\n+\treturn kvlist;\n+}\ndiff --git a/lib/librte_kvargs/rte_kvargs.h b/lib/librte_kvargs/rte_kvargs.h\nindex 51b8120b8..98c4ed1bf 100644\n--- a/lib/librte_kvargs/rte_kvargs.h\n+++ b/lib/librte_kvargs/rte_kvargs.h\n@@ -72,6 +72,36 @@ struct rte_kvargs *rte_kvargs_parse(const char *args,\n \t\tconst char *const valid_keys[]);\n \n /**\n+ * Allocate a rte_kvargs and store key/value associations from a string.\n+ * This version will consider any byte from valid_ends as a possible\n+ * terminating character, and will not parse beyond any of their occurrence.\n+ *\n+ * The function allocates and fills an rte_kvargs structure from a given\n+ * string whose format is key1=value1,key2=value2,...\n+ *\n+ * The structure can be freed with rte_kvargs_free().\n+ *\n+ * @param args\n+ *   The input string containing the key/value associations\n+ *\n+ * @param valid_keys\n+ *   A list of valid keys (table of const char *, the last must be NULL).\n+ *   This argument is ignored if NULL\n+ *\n+ * @param valid_ends\n+ *   Acceptable terminating characters.\n+ *   If NULL, the behavior is the same as ``rte_kvargs_parse``.\n+ *\n+ * @return\n+ *   - A pointer to an allocated rte_kvargs structure on success\n+ *   - NULL on error\n+ */\n+__rte_experimental\n+struct rte_kvargs *rte_kvargs_parse2(const char *args,\n+\t\tconst char *const valid_keys[],\n+\t\tconst char *valid_ends);\n+\n+/**\n  * Free a rte_kvargs structure\n  *\n  * Free a rte_kvargs structure previously allocated with\ndiff --git a/lib/librte_kvargs/rte_kvargs_version.map b/lib/librte_kvargs/rte_kvargs_version.map\nindex 2030ec46c..b9fe44b98 100644\n--- a/lib/librte_kvargs/rte_kvargs_version.map\n+++ b/lib/librte_kvargs/rte_kvargs_version.map\n@@ -8,3 +8,10 @@ DPDK_2.0 {\n \n \tlocal: *;\n };\n+\n+EXPERIMENTAL {\n+\tglobal:\n+\n+\trte_kvargs_parse2;\n+\n+} DPDK_2.0;\n",
    "prefixes": [
        "v9",
        "04/27"
    ]
}