get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7892,
    "url": "http://patches.dpdk.org/api/patches/7892/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1445517356-19780-3-git-send-email-yuanhan.liu@linux.intel.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": "<1445517356-19780-3-git-send-email-yuanhan.liu@linux.intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445517356-19780-3-git-send-email-yuanhan.liu@linux.intel.com",
    "date": "2015-10-22T12:35:50",
    "name": "[dpdk-dev,v8,2/8] vhost-user: add VHOST_USER_GET_QUEUE_NUM message",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "2fa2b2eae553cf5e6ff509f3ab117f326c297b9a",
    "submitter": {
        "id": 307,
        "url": "http://patches.dpdk.org/api/people/307/?format=api",
        "name": "Yuanhan Liu",
        "email": "yuanhan.liu@linux.intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1445517356-19780-3-git-send-email-yuanhan.liu@linux.intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/7892/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/7892/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 AA590C168;\n\tThu, 22 Oct 2015 14:36:00 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id E335B95BF\n\tfor <dev@dpdk.org>; Thu, 22 Oct 2015 14:35:56 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 22 Oct 2015 05:35:31 -0700",
            "from yliu-dev.sh.intel.com ([10.239.66.49])\n\tby orsmga002.jf.intel.com with ESMTP; 22 Oct 2015 05:35:30 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,182,1444719600\"; d=\"scan'208\";a=\"832542827\"",
        "From": "Yuanhan Liu <yuanhan.liu@linux.intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 22 Oct 2015 20:35:50 +0800",
        "Message-Id": "<1445517356-19780-3-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 2/8] vhost-user: add VHOST_USER_GET_QUEUE_NUM\n\tmessage",
        "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": "To tell the frontend (qemu) how many queue pairs we support.\n\nAnd it is initiated to VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX.\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/vhost-net-user.c | 7 +++++++\n lib/librte_vhost/vhost_user/vhost-net-user.h | 1 +\n 2 files changed, 8 insertions(+)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user/vhost-net-user.c b/lib/librte_vhost/vhost_user/vhost-net-user.c\nindex bc2ad24..8675cd4 100644\n--- a/lib/librte_vhost/vhost_user/vhost-net-user.c\n+++ b/lib/librte_vhost/vhost_user/vhost-net-user.c\n@@ -98,6 +98,7 @@ static const char *vhost_message_str[VHOST_USER_MAX] = {\n \t[VHOST_USER_SET_VRING_ERR]  = \"VHOST_USER_SET_VRING_ERR\",\n \t[VHOST_USER_GET_PROTOCOL_FEATURES]  = \"VHOST_USER_GET_PROTOCOL_FEATURES\",\n \t[VHOST_USER_SET_PROTOCOL_FEATURES]  = \"VHOST_USER_SET_PROTOCOL_FEATURES\",\n+\t[VHOST_USER_GET_QUEUE_NUM]  = \"VHOST_USER_GET_QUEUE_NUM\",\n };\n \n /**\n@@ -421,6 +422,12 @@ vserver_message_handler(int connfd, void *dat, int *remove)\n \t\tRTE_LOG(INFO, VHOST_CONFIG, \"not implemented\\n\");\n \t\tbreak;\n \n+\tcase VHOST_USER_GET_QUEUE_NUM:\n+\t\tmsg.payload.u64 = VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX;\n+\t\tmsg.size = sizeof(msg.payload.u64);\n+\t\tsend_vhost_message(connfd, &msg);\n+\t\tbreak;\n+\n \tdefault:\n \t\tbreak;\n \ndiff --git a/lib/librte_vhost/vhost_user/vhost-net-user.h b/lib/librte_vhost/vhost_user/vhost-net-user.h\nindex 4490d23..389d21d 100644\n--- a/lib/librte_vhost/vhost_user/vhost-net-user.h\n+++ b/lib/librte_vhost/vhost_user/vhost-net-user.h\n@@ -65,6 +65,7 @@ typedef enum VhostUserRequest {\n \tVHOST_USER_SET_VRING_ERR = 14,\n \tVHOST_USER_GET_PROTOCOL_FEATURES = 15,\n \tVHOST_USER_SET_PROTOCOL_FEATURES = 16,\n+\tVHOST_USER_GET_QUEUE_NUM = 17,\n \tVHOST_USER_MAX\n } VhostUserRequest;\n \n",
    "prefixes": [
        "dpdk-dev",
        "v8",
        "2/8"
    ]
}