get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 134872,
    "url": "https://patches.dpdk.org/api/patches/134872/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231205094536.2816720-3-david.marchand@redhat.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": "<20231205094536.2816720-3-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231205094536.2816720-3-david.marchand@redhat.com",
    "date": "2023-12-05T09:45:33",
    "name": "[v2,3/5] vhost: fix virtqueue access check in vhost-user setup",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "685d427d6abd76a14bfc9b2f9b95cf0460879f54",
    "submitter": {
        "id": 1173,
        "url": "https://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 2642,
        "url": "https://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231205094536.2816720-3-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 30453,
            "url": "https://patches.dpdk.org/api/series/30453/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=30453",
            "date": "2023-12-05T09:45:31",
            "name": "[v2,1/5] vhost: fix virtqueue access check in datapath",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/30453/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/134872/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/134872/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 15C0E43676;\n\tTue,  5 Dec 2023 10:46:21 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 55B3742E27;\n\tTue,  5 Dec 2023 10:45:59 +0100 (CET)",
            "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 90CDB42E25\n for <dev@dpdk.org>; Tue,  5 Dec 2023 10:45:56 +0100 (CET)",
            "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-102-xNvFzpF_PDiHSXHe5FgkPg-1; Tue,\n 05 Dec 2023 04:45:52 -0500",
            "from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com\n [10.11.54.7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C24643CBDFAD;\n Tue,  5 Dec 2023 09:45:51 +0000 (UTC)",
            "from dmarchan.redhat.com (unknown [10.45.225.216])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 891F71C060AF;\n Tue,  5 Dec 2023 09:45:50 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1701769556;\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 in-reply-to:in-reply-to:references:references;\n bh=zt5/CAg6SUQmZ+ORbBV/0XJpbhMd61fqfgZSknQ9xVI=;\n b=SMtH//MvbxHrlfPXJ65GQBBn+NZvG7RLA7ia5MIzodK62bzZJwf3alhId6HvbjgP4/64wE\n DZiLWKCpOqIi/q3fn+bLAi6Ll7NGXZPTJq0xYH62vNfcNcYXHk9xhiGBISIJViCceKSiNU\n qnmsu1WZgeI9WxvUVbKLIISBTjpVHYc=",
        "X-MC-Unique": "xNvFzpF_PDiHSXHe5FgkPg-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, Eelco Chaudron <echaudro@redhat.com>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbox@nvidia.com>, Tiwei Bie <tiwei.bie@intel.com>",
        "Subject": "[PATCH v2 3/5] vhost: fix virtqueue access check in vhost-user setup",
        "Date": "Tue,  5 Dec 2023 10:45:33 +0100",
        "Message-ID": "<20231205094536.2816720-3-david.marchand@redhat.com>",
        "In-Reply-To": "<20231205094536.2816720-1-david.marchand@redhat.com>",
        "References": "<20231023095520.2864868-1-david.marchand@redhat.com>\n <20231205094536.2816720-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.11.54.7",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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"
    },
    "content": "Calling vring_invalidate must be done with a (write) lock taken on the\nvirtqueue.\n\nFixes: 72d002b3ebda (\"vhost: fix vring address handling during live migration\")\nCc: stable@dpdk.org\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\nAcked-by: Eelco Chaudron <echaudro@redhat.com>\n---\nChanges since v1:\n- moved fix out of patch 3,\n\n---\n lib/vhost/vhost_user.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c\nindex e36312181a..a323ce5fbf 100644\n--- a/lib/vhost/vhost_user.c\n+++ b/lib/vhost/vhost_user.c\n@@ -2198,7 +2198,9 @@ vhost_user_get_vring_base(struct virtio_net **pdev,\n \n \tvhost_user_iotlb_flush_all(dev);\n \n+\trte_rwlock_write_lock(&vq->access_lock);\n \tvring_invalidate(dev, vq);\n+\trte_rwlock_write_unlock(&vq->access_lock);\n \n \treturn RTE_VHOST_MSG_RESULT_REPLY;\n }\n",
    "prefixes": [
        "v2",
        "3/5"
    ]
}