get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85610,
    "url": "http://patches.dpdk.org/api/patches/85610/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201221155033.6771-6-joyce.kong@arm.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": "<20201221155033.6771-6-joyce.kong@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201221155033.6771-6-joyce.kong@arm.com",
    "date": "2020-12-21T15:50:30",
    "name": "[v1,5/8] vhost: relax full barriers for desc flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "08f21c06cf081bca24c2a7d1f2667dba616143ff",
    "submitter": {
        "id": 970,
        "url": "http://patches.dpdk.org/api/people/970/?format=api",
        "name": "Joyce Kong",
        "email": "joyce.kong@arm.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/20201221155033.6771-6-joyce.kong@arm.com/mbox/",
    "series": [
        {
            "id": 14408,
            "url": "http://patches.dpdk.org/api/series/14408/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14408",
            "date": "2020-12-21T15:50:25",
            "name": "replace smp barriers in vhost with C11 atomic",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14408/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/85610/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/85610/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id F1647A09EF;\n\tMon, 21 Dec 2020 16:52:45 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 41BD7CC19;\n\tMon, 21 Dec 2020 16:51:22 +0100 (CET)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by dpdk.org (Postfix) with ESMTP id 7F6D0CBEC\n for <dev@dpdk.org>; Mon, 21 Dec 2020 16:51:20 +0100 (CET)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A35E1042;\n Mon, 21 Dec 2020 07:51:20 -0800 (PST)",
            "from net-arm-thunderx2-03.shanghai.arm.com\n (net-arm-thunderx2-03.shanghai.arm.com [10.169.208.206])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D0B003F6CF;\n Mon, 21 Dec 2020 07:51:17 -0800 (PST)"
        ],
        "From": "Joyce Kong <joyce.kong@arm.com>",
        "To": "maxime.coquelin@redhat.com, chenbo.xia@intel.com,\n honnappa.nagarahalli@arm.com, ruifeng.wang@arm.com",
        "Cc": "dev@dpdk.org,\n\tnd@arm.com",
        "Date": "Mon, 21 Dec 2020 23:50:30 +0800",
        "Message-Id": "<20201221155033.6771-6-joyce.kong@arm.com>",
        "X-Mailer": "git-send-email 2.29.2",
        "In-Reply-To": "<20201221155033.6771-1-joyce.kong@arm.com>",
        "References": "<20201221155033.6771-1-joyce.kong@arm.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v1 5/8] vhost: relax full barriers for desc flags",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "Relax the full read barrier to one-way barrier for desc flags in\npacked vring.\n\nSigned-off-by: Joyce Kong <joyce.kong@arm.com>\nReviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>\n---\n lib/librte_vhost/virtio_net.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c\nindex c912ae354..b779034dc 100644\n--- a/lib/librte_vhost/virtio_net.c\n+++ b/lib/librte_vhost/virtio_net.c\n@@ -222,8 +222,9 @@ vhost_flush_dequeue_shadow_packed(struct virtio_net *dev,\n \tstruct vring_used_elem_packed *used_elem = &vq->shadow_used_packed[0];\n \n \tvq->desc_packed[vq->shadow_last_used_idx].id = used_elem->id;\n-\trte_smp_wmb();\n-\tvq->desc_packed[vq->shadow_last_used_idx].flags = used_elem->flags;\n+\t/* desc flags is the synchronization point for virtio packed vring */\n+\t__atomic_store_n(&vq->desc_packed[vq->shadow_last_used_idx].flags,\n+\t\t\t used_elem->flags, __ATOMIC_RELEASE);\n \n \tvhost_log_cache_used_vring(dev, vq, vq->shadow_last_used_idx *\n \t\t\t\t   sizeof(struct vring_packed_desc),\n",
    "prefixes": [
        "v1",
        "5/8"
    ]
}