get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42339,
    "url": "http://patches.dpdk.org/api/patches/42339/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/6816f4a37e4f3869422377392689ec9ff3f25e7b.1530791217.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": "<6816f4a37e4f3869422377392689ec9ff3f25e7b.1530791217.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/6816f4a37e4f3869422377392689ec9ff3f25e7b.1530791217.git.gaetan.rivet@6wind.com",
    "date": "2018-07-05T11:48:11",
    "name": "[v10,04/27] kvargs: introduce a more flexible parsing function",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "dcfb62fa5f1e8f2edd5d92d8e7416d53a13b179f",
    "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/6816f4a37e4f3869422377392689ec9ff3f25e7b.1530791217.git.gaetan.rivet@6wind.com/mbox/",
    "series": [
        {
            "id": 419,
            "url": "http://patches.dpdk.org/api/series/419/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=419",
            "date": "2018-07-05T11:48:07",
            "name": "Device querying",
            "version": 10,
            "mbox": "http://patches.dpdk.org/series/419/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42339/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42339/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 12EB81BEF4;\n\tThu,  5 Jul 2018 13:49:13 +0200 (CEST)",
            "from mail-wm0-f68.google.com (mail-wm0-f68.google.com\n\t[74.125.82.68]) by dpdk.org (Postfix) with ESMTP id A356B1BEC0\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 13:49:02 +0200 (CEST)",
            "by mail-wm0-f68.google.com with SMTP id s12-v6so10651799wmc.1\n\tfor <dev@dpdk.org>; Thu, 05 Jul 2018 04:49:02 -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\to42-v6sm15809183wrc.50.2018.07.05.04.49.00\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 05 Jul 2018 04:49:00 -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=pv6jnBk/zq+IBiM4PRxSCoZK85hbZX5yBbbjL1gSTQc=;\n\tb=EG9Mx8n/awR/qZjeDS6AyKvM1XdzYKK1g2ivkIk4wbVbunLpAn7y7dI8sxkVA+Rpny\n\tAQau1JcIqVjaTPmMmFxIWssPxXufm5NXFemujOumZgNKn+vRLMkWX+TNtrt0f210n9ju\n\tnjxnq2j3VD35zge4WJzRzRdC/UKed5MRXOlbNa+z2TuSuofMDlCg77ERBzDRckcbRMIo\n\t8kZKSxL7QBeUTfaaF6AE5GIPoQKA4V2/rUS47wjtkouAbNHuBGUnwFdkoTMoGdxqkint\n\tvVYuNU/k7uKhpGUry57PAKx3kmI/653ECRdFGEVgyj8DygXceGfcpvBP662bn8lpoYHL\n\tVgDg==",
        "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;\n\tbh=pv6jnBk/zq+IBiM4PRxSCoZK85hbZX5yBbbjL1gSTQc=;\n\tb=SHLWjL9hE3XKdo9htbgqMCy0C4MUMMGfMLxqBv7MPBBnOn2CV4rEoELeLs6lXuaZg3\n\tU9HEn+aKk9BJXZyDjuEpJaQPnqNQImr+SMEf+QFUww1DGSwupVO3kc8yRJjsLcjVIuLJ\n\tIPOq2LzVio63J43erzvIWgU7p0QyPPa1YF6cxSlrBGkm8wGNcFs0iPdxfarzYmngDis3\n\t4c2W7OdQ4HvRpDgnht9bfbWnY8JDBbctm6sAAL5U+vJsfKrXq2/x9n4qCP5JLPOhPQt+\n\tbQdQAD7kYDxSYlcjzVYD5gY9CEa1Pob+Xtmtkkq4ASPkV/xBztd+7Gkscsg0hBOgeaIg\n\tHPHg==",
        "X-Gm-Message-State": "APt69E3TteeA9hv0G0l6zvit9oESl6MuFf24HNJz2IzHRYWbZrzT9jQ2\n\t7auvAyC+4C5PngB8y0/opCljhc8K",
        "X-Google-Smtp-Source": "AAOMgpf0awDB86kaFB+pdF4kvcPhDhRcF49UpIDPe68ID3bUkUH9981fnSq54jW/lbU87Jz+3D4PEA==",
        "X-Received": "by 2002:a1c:894f:: with SMTP id\n\tl76-v6mr3817216wmd.103.1530791341928; \n\tThu, 05 Jul 2018 04:49:01 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Thu,  5 Jul 2018 13:48:11 +0200",
        "Message-Id": "<6816f4a37e4f3869422377392689ec9ff3f25e7b.1530791217.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<cover.1530791217.git.gaetan.rivet@6wind.com>",
        "References": "<cover.1530791217.git.gaetan.rivet@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v10 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/meson.build            |  2 ++\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 5 files changed, 65 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/meson.build b/lib/librte_kvargs/meson.build\nindex 0a81e8da7..a1c724961 100644\n--- a/lib/librte_kvargs/meson.build\n+++ b/lib/librte_kvargs/meson.build\n@@ -7,3 +7,5 @@ includes += include_directories('../../../lib/librte_eal/common/include')\n version = 1\n sources = files('rte_kvargs.c')\n headers = files('rte_kvargs.h')\n+\n+deps += 'compat'\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@@ -71,6 +71,36 @@ struct rte_kvargs {\n 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  *\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": [
        "v10",
        "04/27"
    ]
}