get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 20368,
    "url": "https://patches.dpdk.org/api/patches/20368/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1486724725-17410-1-git-send-email-thomas.monjalon@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": "<1486724725-17410-1-git-send-email-thomas.monjalon@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1486724725-17410-1-git-send-email-thomas.monjalon@6wind.com",
    "date": "2017-02-10T11:05:25",
    "name": "[dpdk-dev,v2] net/virtio: add speed capability",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "4056a1f039d250dd97d39f307238d9344e2ffbb7",
    "submitter": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/people/1/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas.monjalon@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1486724725-17410-1-git-send-email-thomas.monjalon@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/20368/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/20368/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 54BBC9E7;\n\tFri, 10 Feb 2017 12:05:33 +0100 (CET)",
            "from mail-wm0-f42.google.com (mail-wm0-f42.google.com\n\t[74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 444E9952\n\tfor <dev@dpdk.org>; Fri, 10 Feb 2017 12:05:32 +0100 (CET)",
            "by mail-wm0-f42.google.com with SMTP id c85so256827958wmi.1\n\tfor <dev@dpdk.org>; Fri, 10 Feb 2017 03:05:32 -0800 (PST)",
            "from XPS13.localdomain (184.203.134.77.rev.sfr.net.\n\t[77.134.203.184]) by smtp.gmail.com with ESMTPSA id\n\tm29sm2169030wrm.38.2017.02.10.03.05.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 10 Feb 2017 03:05:31 -0800 (PST)"
        ],
        "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=ebkqL4tRB7lPuZEKFsJmh79Wz3jwFO9VrdiDP8ax7Y0=;\n\tb=t83hx1yGGBOH2yiS937sEm0sqmxbmpM30MO8NHoHDwWEegzJykdedFpSYsBO4u+5aL\n\tjag/MssvSjhSb2TEsvVOkIZx6VK0MesS5tauX81o+i+WdMyQ3UFWyMDIfjMH1ZmzcffB\n\ttdoMxjHohIWs8hZKJ9zIM07lQNx3+qyBYvplU6WmO/qFxxALC9n5AH8LfQzL8zbNQYb1\n\tcWfPcwySiaGJnG1w1tuR3Sv6lypg682BbkCECH8YTfvHwuwGj53k52mruu8if5pj6JhN\n\tCLVXIbcMHR29Ene6m+jgU5w3XXJTVaEbSGraUp7jj3L6pK8uqGw+2TRb9+ibPXkhhrbR\n\tDQuA==",
        "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=ebkqL4tRB7lPuZEKFsJmh79Wz3jwFO9VrdiDP8ax7Y0=;\n\tb=o85v4051R02P1D5MlYhqmLSNrX8x0RLZQS1xvenUdZnvzXGytECrWCPb5z95/ckxsq\n\tE/0iAs0i7rDizF+Xj8D5BEol8Aj3xbT0E90gljHm3Zrgo90gxfjNjLxttcS9VUnRPICD\n\t09f1eMFTFtCZ3yaQQ6SAcvjbUaRgKjTGyDxxGVL0z3dOR1g3UYv1RbTjHgqVvhlYgEPX\n\tOgiqcYzHkiVyQ+ehAGwcAa6dQ7kQ32Mzbb4W9iVi4h0sBq+XTilsyabjAy/f1E/SS4wq\n\t0eMqWp8ubAlLN/ayz6V3/z7LuHn5hsI1/LDa69ssurRLJIc1OIeE/ROx0b6LWp+PbEOo\n\tVYhQ==",
        "X-Gm-Message-State": "AMke39nqwjNc+MDSd1gfVbKNLu8vXuEdImqslI0vfVMwx5O1t/4bWIKafS0enf1kmR4bNnZl",
        "X-Received": "by 10.28.8.213 with SMTP id 204mr7126527wmi.100.1486724732018;\n\tFri, 10 Feb 2017 03:05:32 -0800 (PST)",
        "From": "Thomas Monjalon <thomas.monjalon@6wind.com>",
        "To": "ibarnea@cisco.com",
        "Cc": "dev@dpdk.org",
        "Date": "Fri, 10 Feb 2017 12:05:25 +0100",
        "Message-Id": "<1486724725-17410-1-git-send-email-thomas.monjalon@6wind.com>",
        "X-Mailer": "git-send-email 2.7.0",
        "In-Reply-To": "<2185375.0v2z51C3zP@xps13>",
        "References": "<2185375.0v2z51C3zP@xps13>",
        "Subject": "[dpdk-dev] [PATCH v2] net/virtio: add speed capability",
        "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": "From: Ido Barnea <ibarnea@cisco.com>\n\nThe chosen fake capability (10G) is consistent with the reported\nlink speed in virtio_dev_link_update():\n\tlink.link_speed = SPEED_10G;\n\nThe feature is not marked in doc/guides/nics/features/virtio.ini\nas it is only a fake value.\n\nSigned-off-by: Ido Barnea <ibarnea@cisco.com>\n[Thomas: comments added]\nAcked-by: Thomas Monjalon <thomas.monjalon@6wind.com>\n---\n drivers/net/virtio/virtio_ethdev.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex d1ff234..4dc03b9 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -1835,6 +1835,8 @@ virtio_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n \tuint64_t tso_mask, host_features;\n \tstruct virtio_hw *hw = dev->data->dev_private;\n \n+\tdev_info->speed_capa = ETH_LINK_SPEED_10G; /* fake value */\n+\n \tdev_info->pci_dev = dev->device ? RTE_DEV_TO_PCI(dev->device) : NULL;\n \tdev_info->max_rx_queues =\n \t\tRTE_MIN(hw->max_queue_pairs, VIRTIO_MAX_RX_QUEUES);\n",
    "prefixes": [
        "dpdk-dev",
        "v2"
    ]
}