get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 26451,
    "url": "https://patches.dpdk.org/api/patches/26451/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/640ec833915d1d4ef5f4199025b4db813fc4d363.1499211317.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": "<640ec833915d1d4ef5f4199025b4db813fc4d363.1499211317.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/640ec833915d1d4ef5f4199025b4db813fc4d363.1499211317.git.gaetan.rivet@6wind.com",
    "date": "2017-07-04T23:55:21",
    "name": "[dpdk-dev,v7,4/6] pci: implement parse bus operation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "78751895c433455e79d31f07cb8af87618a3b23c",
    "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/640ec833915d1d4ef5f4199025b4db813fc4d363.1499211317.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/26451/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/26451/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 AFFF558EC;\n\tWed,  5 Jul 2017 01:55:48 +0200 (CEST)",
            "from mail-wm0-f51.google.com (mail-wm0-f51.google.com\n\t[74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 542A7548B\n\tfor <dev@dpdk.org>; Wed,  5 Jul 2017 01:55:43 +0200 (CEST)",
            "by mail-wm0-f51.google.com with SMTP id i127so150649912wma.0\n\tfor <dev@dpdk.org>; Tue, 04 Jul 2017 16:55:43 -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\t19sm23406533wrx.26.2017.07.04.16.55.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 04 Jul 2017 16:55:42 -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=mAwNyxPR51KcNP5fy6arkfyER8ElJhnEtSqBqqtN3aY=;\n\tb=RxvlvPeAMHiD7ZvjdowQTIe4+gSNupKOV40+bre+QCvHcm1wPUxgOh/9gqnry8S+aa\n\td0OJkDlMm0Mq8KrTksSFWNboclVQJNPdbIfMkYfRrIDjP2iwjvHm00Jj6MDafc9Ef1pJ\n\tJIaP4U1tip3E52oZRhEq0QxcUhSQ4/hASzacNWQSC7xYsd38pEzlLAxhFEyHEKIjl5oC\n\tRIF9IFJyteGS79su6ak3iSSSbihhUJAtaKIZKmv427bflTEXUmrNr0n3D1J3gqhD4Bwo\n\tkhJonBGm1Ru8mjGSANxQsv5Tt6Qku+tdbH11fo3ill8hLXqVN8DJaKgKyo8bPShyqKPL\n\tah8w==",
        "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=mAwNyxPR51KcNP5fy6arkfyER8ElJhnEtSqBqqtN3aY=;\n\tb=TxH4wZ0PAwOeOXIL/fuEoMrWkTg7/aNSBRwoH1LKxPkABPot73k+GWJMMhnu8VTYCb\n\te1cAc20GLvg2hQ9JfwdZHQUPLitmn110am+Tv1T7DFTNgiydz9iNKu5nqmHpt1akB3Dw\n\t+8PetYtEEiR7UtuUT1LPbEyzdSOmLtlwWcPp7xpHba8ZfBWdWTUAC/y/K8PwDFHkj0pq\n\tumD6aAIiWrYUU1YFS+nxl/vRVQUBFadx724PJ9/iJsJaVJSaJU0kA8XphVGm1GF1jKOV\n\t0WYDj7dUIhdb4NnkZUdXFcqRrZqClyxM2iQKUyUm42BnMgX4sT1MmRzX9TlqZN0oH/yA\n\tdeag==",
        "X-Gm-Message-State": "AIVw110AgUVQ3glTpX6AD+IcN/YB0if3T/5HdQkvlG+3SpejWHZWSXMY\n\tCAd7CYG9zBI9gBBFTvQ=",
        "X-Received": "by 10.28.10.131 with SMTP id 125mr10014580wmk.28.1499212542716; \n\tTue, 04 Jul 2017 16:55:42 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Wed,  5 Jul 2017 01:55:21 +0200",
        "Message-Id": "<640ec833915d1d4ef5f4199025b4db813fc4d363.1499211317.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": [
            "<cover.1499211317.git.gaetan.rivet@6wind.com>",
            "<cover.1499211317.git.gaetan.rivet@6wind.com>"
        ],
        "References": [
            "<cover.1499127915.git.gaetan.rivet@6wind.com>\n\t<cover.1499211317.git.gaetan.rivet@6wind.com>",
            "<cover.1499211317.git.gaetan.rivet@6wind.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v7 4/6] pci: implement parse bus operation",
        "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": "Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>\n---\n lib/librte_eal/common/eal_common_pci.c | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c\nindex 2c99049..d7e2fb4 100644\n--- a/lib/librte_eal/common/eal_common_pci.c\n+++ b/lib/librte_eal/common/eal_common_pci.c\n@@ -448,6 +448,20 @@ rte_pci_dump(FILE *f)\n \t}\n }\n \n+static int\n+pci_parse(const char *name, void *addr)\n+{\n+\tstruct rte_pci_addr *out = addr;\n+\tstruct rte_pci_addr pci_addr;\n+\tbool parse;\n+\n+\tparse = (eal_parse_pci_BDF(name, &pci_addr) == 0 ||\n+\t\t eal_parse_pci_DomBDF(name, &pci_addr) == 0);\n+\tif (parse && addr != NULL)\n+\t\t*out = pci_addr;\n+\treturn parse == false;\n+}\n+\n /* register a driver */\n void\n rte_pci_register(struct rte_pci_driver *driver)\n@@ -544,6 +558,7 @@ struct rte_pci_bus rte_pci_bus = {\n \t\t.find_device = pci_find_device,\n \t\t.plug = pci_plug,\n \t\t.unplug = pci_unplug,\n+\t\t.parse = pci_parse,\n \t},\n \t.device_list = TAILQ_HEAD_INITIALIZER(rte_pci_bus.device_list),\n \t.driver_list = TAILQ_HEAD_INITIALIZER(rte_pci_bus.driver_list),\n",
    "prefixes": [
        "dpdk-dev",
        "v7",
        "4/6"
    ]
}