get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 113256,
    "url": "http://patchwork.dpdk.org/api/patches/113256/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220622153020.2598037-1-david.marchand@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": "<20220622153020.2598037-1-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220622153020.2598037-1-david.marchand@redhat.com",
    "date": "2022-06-22T15:30:20",
    "name": "vhost/crypto: fix descriptor processing",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "2932e7263f06bc766aed9cef5b1fab9d9f9c1005",
    "submitter": {
        "id": 1173,
        "url": "http://patchwork.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@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/20220622153020.2598037-1-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 23699,
            "url": "http://patchwork.dpdk.org/api/series/23699/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=23699",
            "date": "2022-06-22T15:30:20",
            "name": "vhost/crypto: fix descriptor processing",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/23699/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/113256/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/113256/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 EE9CBA034C;\n\tWed, 22 Jun 2022 17:30:37 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D30EC40A84;\n\tWed, 22 Jun 2022 17:30:37 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by mails.dpdk.org (Postfix) with ESMTP id 99BC34069F\n for <dev@dpdk.org>; Wed, 22 Jun 2022 17:30:35 +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-155-azAn-T2WMF24vNuz-lQeLQ-1; Wed, 22 Jun 2022 11:30:33 -0400",
            "from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com\n [10.11.54.2])\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 7B0AD1C0F689;\n Wed, 22 Jun 2022 15:30:33 +0000 (UTC)",
            "from fchome.redhat.com (unknown [10.40.194.29])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 5A7AF40EC002;\n Wed, 22 Jun 2022 15:30:32 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1655911835;\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=jUNl2doafwupqTlrdf41ebKEBkGH4HiI5ali/eVeX3A=;\n b=OPxFGmNi80p529XDJcId1xywLv51D4VbdG8KhePJCloFlMO7FSA3rsRrfygaftY3VtDSIK\n 4i9zDnxs2iUxT2cYch5npUmx4LR/ERdPVmWG8DjovuWAmkcSX/JxXM7QNHf7jHA6l9i41F\n wIkwFKbC3j+uF1EKJDtZehySOcMs8T0=",
        "X-MC-Unique": "azAn-T2WMF24vNuz-lQeLQ-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "roy.fan.zhang@intel.com, Jakub Poczatek <jakub.poczatek@intel.com>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbo.xia@intel.com>",
        "Subject": "[PATCH] vhost/crypto: fix descriptor processing",
        "Date": "Wed, 22 Jun 2022 17:30:20 +0200",
        "Message-Id": "<20220622153020.2598037-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.11.54.2",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@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": "copy_data was returning a pointer to an increased (off by one) descriptor.\nSubsequent calls to copy_data in the library were then failing.\nFix this by incrementing the descriptor only if there is some left data\nto copy.\n\nFixes: 7287660a21e0 (\"vhost/crypto: fix build with GCC 12\")\n\nReported-by: Jakub Poczatek <jakub.poczatek@intel.com>\nSigned-off-by: David Marchand <david.marchand@redhat.com>\n---\n lib/vhost/vhost_crypto.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c\nindex 96ffb82a5d..54946f46d9 100644\n--- a/lib/vhost/vhost_crypto.c\n+++ b/lib/vhost/vhost_crypto.c\n@@ -610,8 +610,7 @@ copy_data(void *data, struct vhost_crypto_data_req *vc_req,\n \t\t\treturn -1;\n \t\tleft -= copied;\n \t\tdata = RTE_PTR_ADD(data, copied);\n-\t\tdesc++;\n-\t} while (desc < head + max_n_descs && left != 0);\n+\t} while (left != 0 && ++desc < head + max_n_descs);\n \n \tif (unlikely(left != 0))\n \t\treturn -1;\n",
    "prefixes": []
}