get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7896,
    "url": "https://patches.dpdk.org/api/patches/7896/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445517356-19780-8-git-send-email-yuanhan.liu@linux.intel.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": "<1445517356-19780-8-git-send-email-yuanhan.liu@linux.intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445517356-19780-8-git-send-email-yuanhan.liu@linux.intel.com",
    "date": "2015-10-22T12:35:55",
    "name": "[dpdk-dev,v8,7/8] vhost-user: enable vhost-user multiple queue",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9b0e83affd885400386e722fe6a49b98b40a2a4b",
    "submitter": {
        "id": 307,
        "url": "https://patches.dpdk.org/api/people/307/?format=api",
        "name": "Yuanhan Liu",
        "email": "yuanhan.liu@linux.intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445517356-19780-8-git-send-email-yuanhan.liu@linux.intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7896/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7896/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 B3E4DC32A;\n\tThu, 22 Oct 2015 14:36:03 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 60F0495BF\n\tfor <dev@dpdk.org>; Thu, 22 Oct 2015 14:35:58 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 22 Oct 2015 05:35:38 -0700",
            "from yliu-dev.sh.intel.com ([10.239.66.49])\n\tby orsmga002.jf.intel.com with ESMTP; 22 Oct 2015 05:35:37 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,182,1444719600\"; d=\"scan'208\";a=\"832542874\"",
        "From": "Yuanhan Liu <yuanhan.liu@linux.intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 22 Oct 2015 20:35:55 +0800",
        "Message-Id": "<1445517356-19780-8-git-send-email-yuanhan.liu@linux.intel.com>",
        "X-Mailer": "git-send-email 1.9.0",
        "In-Reply-To": "<1445517356-19780-1-git-send-email-yuanhan.liu@linux.intel.com>",
        "References": "<1445399294-18826-1-git-send-email-yuanhan.liu@linux.intel.com>\n\t<1445517356-19780-1-git-send-email-yuanhan.liu@linux.intel.com>",
        "Cc": "marcel@redhat.com, \"Michael S. Tsirkin\" <mst@redhat.com>",
        "Subject": "[dpdk-dev] [PATCH v8 7/8] vhost-user: enable vhost-user multiple\n\tqueue",
        "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": "By setting VHOST_USER_PROTOCOL_F_MQ protocol feature bit, and\nVIRTIO_NET_F_MQ feature bit.\n\nSigned-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>\nAcked-by: Flavio Leitner <fbl@sysclose.org>\n---\n lib/librte_vhost/vhost_user/virtio-net-user.h | 4 +++-\n lib/librte_vhost/virtio-net.c                 | 1 +\n 2 files changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user/virtio-net-user.h b/lib/librte_vhost/vhost_user/virtio-net-user.h\nindex d46057e..b82108d 100644\n--- a/lib/librte_vhost/vhost_user/virtio-net-user.h\n+++ b/lib/librte_vhost/vhost_user/virtio-net-user.h\n@@ -37,7 +37,9 @@\n #include \"vhost-net.h\"\n #include \"vhost-net-user.h\"\n \n-#define VHOST_USER_PROTOCOL_FEATURES\t0ULL\n+#define VHOST_USER_PROTOCOL_F_MQ\t0\n+\n+#define VHOST_USER_PROTOCOL_FEATURES\t(1ULL << VHOST_USER_PROTOCOL_F_MQ)\n \n int user_set_mem_table(struct vhost_device_ctx, struct VhostUserMsg *);\n \ndiff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c\nindex 48629d0..97213c5 100644\n--- a/lib/librte_vhost/virtio-net.c\n+++ b/lib/librte_vhost/virtio-net.c\n@@ -74,6 +74,7 @@ static struct virtio_net_config_ll *ll_root;\n #define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \\\n \t\t\t\t(1ULL << VIRTIO_NET_F_CTRL_VQ) | \\\n \t\t\t\t(1ULL << VIRTIO_NET_F_CTRL_RX) | \\\n+\t\t\t\t(1ULL << VIRTIO_NET_F_MQ)      | \\\n \t\t\t\t(1ULL << VHOST_F_LOG_ALL)      | \\\n \t\t\t\t(1ULL << VHOST_USER_F_PROTOCOL_FEATURES))\n static uint64_t VHOST_FEATURES = VHOST_SUPPORTED_FEATURES;\n",
    "prefixes": [
        "dpdk-dev",
        "v8",
        "7/8"
    ]
}