get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 25124,
    "url": "http://patches.dpdk.org/api/patches/25124/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/29efa24a4f059c8ec7cf54297ef8ace7f8d5ef13.1496876748.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": "<29efa24a4f059c8ec7cf54297ef8ace7f8d5ef13.1496876748.git.gaetan.rivet@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/29efa24a4f059c8ec7cf54297ef8ace7f8d5ef13.1496876748.git.gaetan.rivet@6wind.com",
    "date": "2017-06-07T23:54:48",
    "name": "[dpdk-dev,v3] pci: implement find_device bus operation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7ec55a9a0729278f9c1b839cfdbace702f94a3fd",
    "submitter": {
        "id": 269,
        "url": "http://patches.dpdk.org/api/people/269/?format=api",
        "name": "Gaëtan Rivet",
        "email": "gaetan.rivet@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/29efa24a4f059c8ec7cf54297ef8ace7f8d5ef13.1496876748.git.gaetan.rivet@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/25124/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/25124/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 3F1772BD8;\n\tThu,  8 Jun 2017 01:55:01 +0200 (CEST)",
            "from mail-wr0-f173.google.com (mail-wr0-f173.google.com\n\t[209.85.128.173]) by dpdk.org (Postfix) with ESMTP id A1B702BBD\n\tfor <dev@dpdk.org>; Thu,  8 Jun 2017 01:54:59 +0200 (CEST)",
            "by mail-wr0-f173.google.com with SMTP id g76so11973682wrd.1\n\tfor <dev@dpdk.org>; Wed, 07 Jun 2017 16:54:59 -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\ty19sm4341200wmh.21.2017.06.07.16.54.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 07 Jun 2017 16:54:58 -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=RtWnHuOOkt5sCNkgCBxevULLVaBHqD4so8R8Gafq1c0=;\n\tb=oUjFcUx9P9q8NvU/1Y6I1EL6xSIFVADw6NsoEFvija8wE33aThmmYNOWNVS5hFw1HX\n\tNXIk3in6Gy2D+heO2eBhwMITjd1mtMnr9NrrDgbAWYuXrPgyJDXW6IIbzLGMpuQMm684\n\tCMTH2B9u3gXVue2M/WElfdv6DOv1PgfvFHXeenUt6ZINs2ukaCMYaJ57TWrOE6pKpZ16\n\ttpbj2SsvFpMIbsQVlDiU0naK9xqBSLDxB3jiSFponLq3cEwUEWvZVsHwFPGtutDf1xzr\n\t9WVLyR88cnMjrHLktMrvKT2RwEPae47oxKxRzDUt6B4WgqXaV9SKfkobQom6pS2Efm7d\n\tSMrA==",
        "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=RtWnHuOOkt5sCNkgCBxevULLVaBHqD4so8R8Gafq1c0=;\n\tb=FsJ1m3BkmfveYuwVWewt3ZNqtgt+u+tv9+nSNGkSlfMX20B3OL1+szVkZ/om9boRiF\n\tYdOgT3R7K0JKjKSgNrDsrvyCfD/t8x0hmszGESmwhMPDHRg63LFJ9l0Nf1hIxIxJMz0n\n\tV3FBzJBoslRXMZI4D/YsTk0Iyy1XwUoowpQPDvfm1wzfoc3GD0WyTawzyxqZh3sg6UM8\n\tkuxxirwetD95ORQM14QGDfT2Og3RYvDo6zNlf69thmdIVuaC1bo6n/2b+OVCj3XXuwdu\n\tZfhqQiUCJfULx1zvMC+2Zgu65FTancQtaktj9gZdeefb5gZ6Tbo2snrhP4rG/wngNk6D\n\tyjyw==",
        "X-Gm-Message-State": "AODbwcAKEK9pqU+E+F9ebN04uAiDo8FvzWDO0ddEtU0VFTE1sS6G6LMk\n\tPyJwO6+tftDEQ98IUD0=",
        "X-Received": "by 10.223.167.15 with SMTP id c15mr11948539wrd.79.1496879699171; \n\tWed, 07 Jun 2017 16:54:59 -0700 (PDT)",
        "From": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Gaetan Rivet <gaetan.rivet@6wind.com>",
        "Date": "Thu,  8 Jun 2017 01:54:48 +0200",
        "Message-Id": "<29efa24a4f059c8ec7cf54297ef8ace7f8d5ef13.1496876748.git.gaetan.rivet@6wind.com>",
        "X-Mailer": "git-send-email 2.1.4",
        "In-Reply-To": "<9d79d06e063c1337233dac6ab978bb98f52f6375.1496309620.git.gaetan.rivet@6wind.com>",
        "References": "<9d79d06e063c1337233dac6ab978bb98f52f6375.1496309620.git.gaetan.rivet@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v3] pci: implement find_device 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---\nThis patch depends on:\n\nbus: attach / detach API\nhttp://dpdk.org/ml/archives/dev/2017-May/066330.html\nhttp://dpdk.org/dev/patchwork/patch/24489/\n\nv1 --> v2\n\n * Use the newly defined rte_dev_match_t type\n\nv2 --> v3\n\n * Use new comparison behavior.\n\n---\n lib/librte_eal/common/eal_common_pci.c | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c\nindex 5ae5201..5a8478c 100644\n--- a/lib/librte_eal/common/eal_common_pci.c\n+++ b/lib/librte_eal/common/eal_common_pci.c\n@@ -483,10 +483,23 @@ rte_pci_remove_device(struct rte_pci_device *pci_dev)\n \tTAILQ_REMOVE(&rte_pci_bus.device_list, pci_dev, next);\n }\n \n+static struct rte_device *\n+pci_find_device(rte_dev_cmp_t cmp, const void *data)\n+{\n+\tstruct rte_pci_device *dev;\n+\n+\tFOREACH_DEVICE_ON_PCIBUS(dev) {\n+\t\tif (cmp(&dev->device, data) == 0)\n+\t\t\treturn &dev->device;\n+\t}\n+\treturn NULL;\n+}\n+\n struct rte_pci_bus rte_pci_bus = {\n \t.bus = {\n \t\t.scan = rte_pci_scan,\n \t\t.probe = rte_pci_probe,\n+\t\t.find_device = pci_find_device,\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",
        "v3"
    ]
}