Show a patch.

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

{
    "id": 361,
    "url": "http://patches.dpdk.org/api/patches/361/",
    "web_url": "http://patches.dpdk.org/patch/361/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1410474308-17744-1-git-send-email-damarion@cisco.com>",
    "date": "2014-09-11T22:25:08",
    "name": "[dpdk-dev] virtio: fix crash if VIRTIO_NET_F_CTRL_VQ is not negotiated",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "917f5e1e48437c31f7a685ae219f0db1453390df",
    "submitter": {
        "id": 68,
        "url": "http://patches.dpdk.org/api/people/68/",
        "name": "Damjan Marion (damarion)",
        "email": "damarion@cisco.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/361/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/361/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/361/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,508,1406592000\"; d=\"scan'208\";a=\"77179218\"",
        "From": "damarion@cisco.com",
        "Delivered-To": "patchwork@dpdk.org",
        "Message-Id": "<1410474308-17744-1-git-send-email-damarion@cisco.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 82AAF68AC;\n\tFri, 12 Sep 2014 00:19:57 +0200 (CEST)",
            "from alln-iport-4.cisco.com (alln-iport-4.cisco.com\n\t[173.37.142.91]) by dpdk.org (Postfix) with ESMTP id 745BE58E0\n\tfor <dev@dpdk.org>; Fri, 12 Sep 2014 00:19:56 +0200 (CEST)",
            "from alln-core-11.cisco.com ([173.36.13.133])\n\tby alln-iport-4.cisco.com with ESMTP; 11 Sep 2014 22:25:11 +0000",
            "from localhost.localdomain (ts1-host1.cisco.com [172.21.174.32])\n\tby alln-core-11.cisco.com (8.14.5/8.14.5) with ESMTP id\n\ts8BMPAbL000662; Thu, 11 Sep 2014 22:25:10 GMT"
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH] virtio: fix crash if VIRTIO_NET_F_CTRL_VQ is not\n\tnegotiated",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n\td=cisco.com; i=@cisco.com; l=861; q=dns/txt; s=iport;\n\tt=1410474312; x=1411683912;\n\th=from:to:cc:subject:date:message-id;\n\tbh=Ebxh9zihW/L/elzvVWQeCSZQ28i927SMZZlhFT5BRcY=;\n\tb=kuz7tYli8/P5Ce8U9FntzuSBo4xkCselE4ws+aX5wlKCQLL4ZflpmKg7\n\ta7cFfybDcdBuHNrZEokwwOxjEuWwJ4AMniGA3Te37fVa0mNCCzvCEhko0\n\tS6SUZpub93kWGfQUgYkL4VFVnhHDht8rlZLOnJmepNWmSWtsgUR2W7Lky g=;",
        "Precedence": "list",
        "Date": "Thu, 11 Sep 2014 15:25:08 -0700",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "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>",
        "X-Mailer": "git-send-email 1.9.1",
        "To": "dev@dpdk.org"
    },
    "content": "From: Damjan Marion <damarion@cisco.com>\n\nIf VIRTIO_NET_F_CTRL_VQ is not negotiated hw->cvq will be NULL\n\nSigned-off-by: Damjan Marion <damarion@cisco.com>\n---\n lib/librte_pmd_virtio/virtio_rxtx.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_virtio/virtio_rxtx.c b/lib/librte_pmd_virtio/virtio_rxtx.c\nindex 0b10108..8cb635e 100644\n--- a/lib/librte_pmd_virtio/virtio_rxtx.c\n+++ b/lib/librte_pmd_virtio/virtio_rxtx.c\n@@ -328,8 +328,10 @@ virtio_dev_cq_start(struct rte_eth_dev *dev)\n \tstruct virtio_hw *hw\n \t\t= VIRTIO_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n \n-\tvirtio_dev_vring_start(hw->cvq, VTNET_CQ);\n-\tVIRTQUEUE_DUMP((struct virtqueue *)hw->cvq);\n+\tif (hw->cvq) {\n+\t\tvirtio_dev_vring_start(hw->cvq, VTNET_CQ);\n+\t\tVIRTQUEUE_DUMP((struct virtqueue *)hw->cvq);\n+\t}\n }\n \n void\n",
    "prefixes": [
        "dpdk-dev"
    ]
}