get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96275,
    "url": "http://patches.dpdk.org/api/patches/96275/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210726075814.287469-1-maxime.coquelin@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": "<20210726075814.287469-1-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210726075814.287469-1-maxime.coquelin@redhat.com",
    "date": "2021-07-26T07:58:14",
    "name": "vhost: fix crash on reconnect",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "da0ea6ba3a377a1bff9abf8c25f4867ca7c207c1",
    "submitter": {
        "id": 512,
        "url": "http://patches.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210726075814.287469-1-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 17986,
            "url": "http://patches.dpdk.org/api/series/17986/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17986",
            "date": "2021-07-26T07:58:14",
            "name": "vhost: fix crash on reconnect",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/17986/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/96275/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/96275/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E95E0A0C47;\n\tMon, 26 Jul 2021 09:58:26 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6F98940F35;\n\tMon, 26 Jul 2021 09:58:26 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by mails.dpdk.org (Postfix) with ESMTP id 337DF40DDA\n for <dev@dpdk.org>; Mon, 26 Jul 2021 09:58:25 +0200 (CEST)",
            "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-266-Woif-Yn4NEiYj89-VUFH4Q-1; Mon, 26 Jul 2021 03:58:23 -0400",
            "from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com\n [10.5.11.16])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F2E8F101C8A9;\n Mon, 26 Jul 2021 07:58:21 +0000 (UTC)",
            "from max-t490s.redhat.com (unknown [10.36.110.10])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 37C3F5C1CF;\n Mon, 26 Jul 2021 07:58:17 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1627286304;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=yQl25RQ+hI1WxX7JODumiENqsvijBCNmEQL+ZyyTpiA=;\n b=OSjGvHi1Oe9+gzWO4zFZh9FO6+gul+J4Fv75Txcqvc+k8huhc26NHW4czs9dIqW2ajQiSR\n OfnX/d1vYUjVUrG5pKzGSjeNb0YcQTIHZtAL0HKroeag9TP8zJ84+QS8DwsUFqcHgPE3ld\n AyW03WvBXJ6DgFqfYzaUNRb3W33xbB4=",
        "X-MC-Unique": "Woif-Yn4NEiYj89-VUFH4Q-1",
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "dev@dpdk.org, chenbo.xia@intel.com, yinan.wang@intel.com,\n weix.ling@intel.com",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n\tstable@dpdk.org",
        "Date": "Mon, 26 Jul 2021 09:58:14 +0200",
        "Message-Id": "<20210726075814.287469-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.16",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"",
        "Subject": "[dpdk-dev] [PATCH] vhost: fix crash on reconnect",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "When the vhost-user frontend like Virtio-user tries to\nreconnect to the restarted Vhost backend, the Vhost backend\nsegfaults when multiqueue is enabled.\n\nThis is caused by VHOST_USER_GET_VRING_BASE being called for\na virtqueue that has not been created before, causing a NULL\npointer dereferencing.\n\nThis patch adds the VHOST_USER_GET_VRING_BASE requests to\nthe list of requests that trigger queue pair allocations.\n\nFixes: 160cbc815b41 (\"vhost: remove a hack on queue allocation\")\nCc: stable@dpdk.org\n\nReported-by: Yinan Wang <yinan.wang@intel.com>\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n lib/vhost/vhost_user.c | 1 +\n 1 file changed, 1 insertion(+)",
    "diff": "diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c\nindex 433f412fa8..29a4c9af60 100644\n--- a/lib/vhost/vhost_user.c\n+++ b/lib/vhost/vhost_user.c\n@@ -2796,6 +2796,7 @@ vhost_user_check_and_alloc_queue_pair(struct virtio_net *dev,\n \t\tbreak;\n \tcase VHOST_USER_SET_VRING_NUM:\n \tcase VHOST_USER_SET_VRING_BASE:\n+\tcase VHOST_USER_GET_VRING_BASE:\n \tcase VHOST_USER_SET_VRING_ENABLE:\n \t\tvring_idx = msg->payload.state.index;\n \t\tbreak;\n",
    "prefixes": []
}