get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 30917,
    "url": "https://patches.dpdk.org/api/patches/30917/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/cdb1869f2dbe73b1b63da8ef2943e6421482a242.1508970254.git.gaetan.rivet@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": "<cdb1869f2dbe73b1b63da8ef2943e6421482a242.1508970254.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/cdb1869f2dbe73b1b63da8ef2943e6421482a242.1508970254.git.gaetan.rivet@6wind.com",
    "date": "2017-10-25T22:38:36",
    "name": "[dpdk-dev,v7,14/25] pci: introduce PCI address parsing function",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "857f6afb0d9c69ea7076985f80a37eeb8dc449f4",
    "submitter": {
        "id": 269,
        "url": "https://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/cdb1869f2dbe73b1b63da8ef2943e6421482a242.1508970254.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/30917/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/30917/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 ADD441BAA3;\n\tThu, 26 Oct 2017 00:39:50 +0200 (CEST)",
            "from mail-wm0-f66.google.com (mail-wm0-f66.google.com\n\t[74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 58CD11BA6A\n\tfor <dev@dpdk.org>; Thu, 26 Oct 2017 00:39:27 +0200 (CEST)",
            "by mail-wm0-f66.google.com with SMTP id m72so4572592wmc.1\n\tfor <dev@dpdk.org>; Wed, 25 Oct 2017 15:39:27 -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\tr63sm4466124wmg.13.2017.10.25.15.39.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 25 Oct 2017 15:39:25 -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=M/7kV+/DkBJ+j5us39Jc33EgWQknpjitUb1UWUednHE=;\n\tb=kg4GycCSVb6xGRIwNrJPMITDF+apcxddpntKJtlUiRWMZWT6Qj4+8q2cPOIjw+fV8D\n\tBezrseZVc//LIZTWFLIwpNCN/BO4iBrLfqCCMsMcXM2K+8UkLzJKyuRs99b21QXOHXwX\n\tKDkLFJzN9lbwhBoTTmjngASezyPsYEj3G4axMpI76UteWHDYl8EQxi6PwCDdz58L2a+r\n\tUZeMepwdJmHuOcpP7vdfU3S7YQNIgYXClnzs/sxrlQkleUfWf7zIB+ONZQfOhx6mtufs\n\tRw4vqe+Q6cEXh9PUIZ2sUqSIc9YKcDkG+qTvoK1ID7h+D7W95TpE+6jEpa1oi+/fHkAW\n\tqMgg==",
        "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=M/7kV+/DkBJ+j5us39Jc33EgWQknpjitUb1UWUednHE=;\n\tb=U6+7dNkM8dQhnbgHmKqPgjYMM4sEvYZEmhR2oymgJK3lUk0asyi1jmXws/RGnJsP+R\n\tAEEE7QPs4q6wTzKFOiJNXninS36mrXLHX4E0AgdXz6V79G2POCLnkVQTlzH0RgSnh+lG\n\tAJ5EqUacLCxS1AQKZZvculy8Xka2Xbwmb58vz3XDlzn5m4rsT8ZnQXnK7HOq9ZSH7pi8\n\t5pjqLfAWosMZ7tCePDEYbozs+5doApcsAjyBL8h+sTTs7hs5ff3n1M5kP5QeYNMHo07Z\n\tCwX63Usiwz8qoU8CWEpMSAheqfqqKJjM8oQbDnKtv3GeQ+KvW6w2RxYRsiLIAbPhw34Z\n\tN4hg==",
        "X-Gm-Message-State": "AMCzsaUn2dx2msYaaLFCThNOQtBNTsOVly+fWgGnYaiWsXW77S2FO75D\n\t7/LjIoMvwpVhi2jeyXmIXS0DtVoy",
        "X-Google-Smtp-Source": "ABhQp+QICGWGvj+084keOSTIb9uQiY650ODRIfUVDRA73+SoIzP6X5d4HgGkBE1YDIweejm+z1vtDA==",
        "X-Received": "by 10.28.199.139 with SMTP id x133mr2897123wmf.145.1508971166452;\n\tWed, 25 Oct 2017 15:39:26 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Thu, 26 Oct 2017 00:38:36 +0200",
        "Message-Id": "<cdb1869f2dbe73b1b63da8ef2943e6421482a242.1508970254.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": [
            "<cover.1508970254.git.gaetan.rivet@6wind.com>",
            "<cover.1508970254.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1507804944.git.gaetan.rivet@6wind.com>\n\t<cover.1508970254.git.gaetan.rivet@6wind.com>",
            "<cover.1508970254.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v7 14/25] pci: introduce PCI address parsing\n\tfunction",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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": "A new single function that is able to parse all currently supported\nformat:\n\n   * Domain-Bus-Device-Function\n   *        Bus-Device-Function\n\nSigned-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_eal/common/eal_common_pci.c  |  9 +++++++++\n lib/librte_eal/common/include/rte_pci.h | 14 ++++++++++++++\n lib/librte_eal/rte_eal_version.map      |  1 +\n 3 files changed, 24 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c\nindex a3c32fb..fdcf005 100644\n--- a/lib/librte_eal/common/eal_common_pci.c\n+++ b/lib/librte_eal/common/eal_common_pci.c\n@@ -199,6 +199,15 @@ rte_eal_compare_pci_addr(const struct rte_pci_addr *addr,\n \treturn rte_pci_addr_cmp(addr, addr2);\n }\n \n+int\n+rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr)\n+{\n+\tif (rte_pci_bdf_parse(str, addr) == 0 ||\n+\t    rte_pci_dbdf_parse(str, addr) == 0)\n+\t\treturn 0;\n+\treturn -1;\n+}\n+\n void\n pci_name_set(struct rte_pci_device *dev)\n {\ndiff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h\nindex 9ac19d5..11ba442 100644\n--- a/lib/librte_eal/common/include/rte_pci.h\n+++ b/lib/librte_eal/common/include/rte_pci.h\n@@ -347,6 +347,20 @@ int rte_eal_compare_pci_addr(const struct rte_pci_addr *addr,\n \t\t\t     const struct rte_pci_addr *addr2);\n \n /**\n+ * Utility function to parse a string into a PCI location.\n+ *\n+ * @param str\n+ *     The string to parse\n+ * @param addr\n+ *     The reference to the structure where the location\n+ *     is stored.\n+ * @return\n+ *     0 on success\n+ *     <0 otherwise\n+ */\n+int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr);\n+\n+/**\n  * Scan the content of the PCI bus, and the devices in the devices\n  * list\n  *\ndiff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map\nindex 5cad972..3568694 100644\n--- a/lib/librte_eal/rte_eal_version.map\n+++ b/lib/librte_eal/rte_eal_version.map\n@@ -254,6 +254,7 @@ DPDK_17.11 {\n \trte_lcore_has_role;\n \trte_memcpy_ptr;\n \trte_pci_addr_cmp;\n+\trte_pci_addr_parse;\n \trte_pci_bdf_parse;\n \trte_pci_dbdf_parse;\n \trte_pci_device_name;\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "14/25"
    ]
}