get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 113924,
    "url": "http://patchwork.dpdk.org/api/patches/113924/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220712100447.104162-1-maxime.coquelin@redhat.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20220712100447.104162-1-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220712100447.104162-1-maxime.coquelin@redhat.com",
    "date": "2022-07-12T10:04:47",
    "name": "vhost: fix missing copy length in batched copies",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "cce44ce32829b7b78ef6cdc80409733a646f1e89",
    "submitter": {
        "id": 512,
        "url": "http://patchwork.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patchwork.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220712100447.104162-1-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 23970,
            "url": "http://patchwork.dpdk.org/api/series/23970/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=23970",
            "date": "2022-07-12T10:04:47",
            "name": "vhost: fix missing copy length in batched copies",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/23970/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/113924/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/113924/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 D3269A0032;\n\tTue, 12 Jul 2022 12:05:01 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7CA7741109;\n\tTue, 12 Jul 2022 12:05:01 +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 0718E410EF\n for <dev@dpdk.org>; Tue, 12 Jul 2022 12:04:59 +0200 (CEST)",
            "from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com\n [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n us-mta-480-rxQ21bUFMRu7vO2yxj2X1Q-1; Tue, 12 Jul 2022 06:04:50 -0400",
            "from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com\n [10.11.54.6])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 392F429ABA11;\n Tue, 12 Jul 2022 10:04:50 +0000 (UTC)",
            "from max-t490s.redhat.com (unknown [10.39.208.27])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 07DB72166B26;\n Tue, 12 Jul 2022 10:04:48 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1657620299;\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=6SU1ElXwpibNDYYX9vk/BXhBaO3D1NuLa0zEsCovVWc=;\n b=Kqhg2B4THte2kLa040vbhli6cmH1MK1PllRNH8dZH1qRNOUVoE64JwD1mSsmhYKBMqVly+\n KJXTZw06Tr9ymEiAl3lI6xiOprBijlDbM8YWQ5GANaiN2Oj8Fuj3XxYcGfTHGd7SyEw2+a\n EH0AvkN36Ds68v4rvURgzCAjHURk4tU=",
        "X-MC-Unique": "rxQ21bUFMRu7vO2yxj2X1Q-1",
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "dev@dpdk.org, chenbo.xia@intel.com, yux.jiang@intel.com,\n thomas@monjalon.net, david.marchand@redhat.com",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "Subject": "[PATCH] vhost: fix missing copy length in batched copies",
        "Date": "Tue, 12 Jul 2022 12:04:47 +0200",
        "Message-Id": "<20220712100447.104162-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.78 on 10.11.54.6",
        "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\"; 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": "This patch fixes missing the assignement of the copy length\nwhen doing batched copies in the sync dequeue path.\n\nFixes: cd79d1b030bd (\"vhost: fix unnecessary dirty page logging\")\n\nSuggested-by: Chenbo Xia <chenbo.xia@intel.com>\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n lib/vhost/virtio_net.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c\nindex 12b7fbe7f9..35fa4670fd 100644\n--- a/lib/vhost/virtio_net.c\n+++ b/lib/vhost/virtio_net.c\n@@ -1127,13 +1127,13 @@ sync_fill_seg(struct virtio_net *dev, struct vhost_virtqueue *vq,\n \t\t\tbatch_copy[vq->batch_copy_nb_elems].src =\n \t\t\t\trte_pktmbuf_mtod_offset(m, void *, mbuf_offset);\n \t\t\tbatch_copy[vq->batch_copy_nb_elems].log_addr = buf_iova;\n-\t\t\tbatch_copy[vq->batch_copy_nb_elems].len = cpy_len;\n \t\t} else {\n \t\t\tbatch_copy[vq->batch_copy_nb_elems].dst =\n \t\t\t\trte_pktmbuf_mtod_offset(m, void *, mbuf_offset);\n \t\t\tbatch_copy[vq->batch_copy_nb_elems].src =\n \t\t\t\t(void *)((uintptr_t)(buf_addr));\n \t\t}\n+\t\tbatch_copy[vq->batch_copy_nb_elems].len = cpy_len;\n \t\tvq->batch_copy_nb_elems++;\n \t}\n }\n",
    "prefixes": []
}