get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 16181,
    "url": "http://patches.dpdk.org/api/patches/16181/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1475051112-5108-1-git-send-email-jasowang@redhat.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": "<1475051112-5108-1-git-send-email-jasowang@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1475051112-5108-1-git-send-email-jasowang@redhat.com",
    "date": "2016-09-28T08:25:11",
    "name": "[dpdk-dev,V2,1/2] net/virtio: support modern device id",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "6e075a027e8d31f753048416c2dde1eb45cdb072",
    "submitter": {
        "id": 374,
        "url": "http://patches.dpdk.org/api/people/374/?format=api",
        "name": "Jason Wang",
        "email": "jasowang@redhat.com"
    },
    "delegate": {
        "id": 355,
        "url": "http://patches.dpdk.org/api/users/355/?format=api",
        "username": "yliu",
        "first_name": "Yuanhan",
        "last_name": "Liu",
        "email": "yuanhan.liu@linux.intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1475051112-5108-1-git-send-email-jasowang@redhat.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/16181/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/16181/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 04E105599;\n\tWed, 28 Sep 2016 10:25:20 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 1921DDE3\n\tfor <dev@dpdk.org>; Wed, 28 Sep 2016 10:25:19 +0200 (CEST)",
            "from int-mx11.intmail.prod.int.phx2.redhat.com\n\t(int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 9342B44820;\n\tWed, 28 Sep 2016 08:25:18 +0000 (UTC)",
            "from jason-ThinkPad-T450s.redhat.com (vpn1-6-179.pek2.redhat.com\n\t[10.72.6.179])\n\tby int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with\n\tESMTP id u8S8PEqw005455; Wed, 28 Sep 2016 04:25:15 -0400"
        ],
        "From": "Jason Wang <jasowang@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "huawei.xie@intel.com, yuanhan.liu@linux.intel.com, mst@redhat.com,\n\tvkaplans@redhat.com, Jason Wang <jasowang@redhat.com>",
        "Date": "Wed, 28 Sep 2016 16:25:11 +0800",
        "Message-Id": "<1475051112-5108-1-git-send-email-jasowang@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.68 on 10.5.11.24",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.30]); Wed, 28 Sep 2016 08:25:18 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH V2 1/2] net/virtio: support modern device id",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <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": "Add modern device id and rename VIRTIO_PCI_DEVICEID_MIN to\nVIRTIO_PCI_LEGACY_DEVICEID_NET. While at it, remove unused macros too.\n\nSigned-off-by: Jason Wang <jasowang@redhat.com>\n---\n drivers/net/virtio/virtio_ethdev.c | 3 ++-\n drivers/net/virtio/virtio_pci.h    | 4 ++--\n 2 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c\nindex ef0d6ee..bb6181d 100644\n--- a/drivers/net/virtio/virtio_ethdev.c\n+++ b/drivers/net/virtio/virtio_ethdev.c\n@@ -103,7 +103,8 @@ static int virtio_dev_queue_stats_mapping_set(\n  * The set of PCI devices this driver supports\n  */\n static const struct rte_pci_id pci_id_virtio_map[] = {\n-\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_DEVICEID_MIN) },\n+\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_LEGACY_DEVICEID_NET) },\n+\t{ RTE_PCI_DEVICE(VIRTIO_PCI_VENDORID, VIRTIO_PCI_MODERN_DEVICEID_NET) },\n \t{ .vendor_id = 0, /* sentinel */ },\n };\n \ndiff --git a/drivers/net/virtio/virtio_pci.h b/drivers/net/virtio/virtio_pci.h\nindex dd7693f..3430a39 100644\n--- a/drivers/net/virtio/virtio_pci.h\n+++ b/drivers/net/virtio/virtio_pci.h\n@@ -44,8 +44,8 @@ struct virtnet_ctl;\n \n /* VirtIO PCI vendor/device ID. */\n #define VIRTIO_PCI_VENDORID     0x1AF4\n-#define VIRTIO_PCI_DEVICEID_MIN 0x1000\n-#define VIRTIO_PCI_DEVICEID_MAX 0x103F\n+#define VIRTIO_PCI_LEGACY_DEVICEID_NET 0x1000\n+#define VIRTIO_PCI_MODERN_DEVICEID_NET 0x1041\n \n /* VirtIO ABI version, this must match exactly. */\n #define VIRTIO_PCI_ABI_VERSION 0\n",
    "prefixes": [
        "dpdk-dev",
        "V2",
        "1/2"
    ]
}