get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 72801,
    "url": "https://patches.dpdk.org/api/patches/72801/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200702083237.1215652-5-amorenoz@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": "<20200702083237.1215652-5-amorenoz@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200702083237.1215652-5-amorenoz@redhat.com",
    "date": "2020-07-02T08:32:33",
    "name": "[v2,4/8] vhost: check vDPA configuration succeed",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "86c2e3dff1c5744f9a81f5f8d537f7f8737042db",
    "submitter": {
        "id": 1397,
        "url": "https://patches.dpdk.org/api/people/1397/?format=api",
        "name": "Adrian Moreno",
        "email": "amorenoz@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/20200702083237.1215652-5-amorenoz@redhat.com/mbox/",
    "series": [
        {
            "id": 10732,
            "url": "https://patches.dpdk.org/api/series/10732/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10732",
            "date": "2020-07-02T08:32:30",
            "name": "vhost: improve Vhost/vDPA device init",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/10732/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/72801/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/72801/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 0328DA0524;\n\tThu,  2 Jul 2020 10:33:42 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 64CB51D70F;\n\tThu,  2 Jul 2020 10:33:09 +0200 (CEST)",
            "from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com\n [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 3A36C1D691\n for <dev@dpdk.org>; Thu,  2 Jul 2020 10:33:07 +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-378-mFBI1arfN6WPHe6rSeSBVw-1; Thu, 02 Jul 2020 04:33:04 -0400",
            "from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com\n [10.5.11.22])\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 4EAF8800597;\n Thu,  2 Jul 2020 08:33:03 +0000 (UTC)",
            "from amorenoz.users.ipa.redhat.com (ovpn-112-91.ams2.redhat.com\n [10.36.112.91])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 468791002397;\n Thu,  2 Jul 2020 08:33:01 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1593678786;\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=7cMAZjucjqcVUPQPW7sJ6JBEZWdX/z0DHws8TCX5wZw=;\n b=SjawmKr4og0HVtLqDduoSTSrUMIAqsPO973CxJ23jtBifxnmA9c4vxvyz9M/o6tJDk+pNc\n Vkkvs3W+PwrB+7dUpPVjyOmj6s7grVTWuL0JLsHIQfxWdWqIXV1ZFZdbGWcjhmLvU/YYyx\n BUkjyE7vjOQqQ8kEjFQJLyqLhh3EhY0=",
        "X-MC-Unique": "mFBI1arfN6WPHe6rSeSBVw-1",
        "From": "Adrian Moreno <amorenoz@redhat.com>",
        "To": "dev@dpdk.org, xiaolong.ye@intel.com, shahafs@mellanox.com,\n matan@mellanox.com, maxime.coquelin@redhat.com, xiao.w.wang@intel.com,\n viacheslavo@mellanox.com",
        "Cc": "jasowang@redhat.com, lulu@redhat.com, Adrian Moreno <amorenoz@redhat.com>",
        "Date": "Thu,  2 Jul 2020 10:32:33 +0200",
        "Message-Id": "<20200702083237.1215652-5-amorenoz@redhat.com>",
        "In-Reply-To": "<20200702083237.1215652-1-amorenoz@redhat.com>",
        "References": "<20200702083237.1215652-1-amorenoz@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.22",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=amorenoz@redhat.com",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "text/plain; charset=US-ASCII",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 4/8] vhost: check vDPA configuration succeed",
        "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": "From: Maxime Coquelin <maxime.coquelin@redhat.com>\n\nThis patch checks whether vDPA device configuration\nsucceed and does not set the CONFIGURED flag if it\ndidn't.\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\nSigned-off-by: Adrian Moreno <amorenoz@redhat.com>\n---\n lib/librte_vhost/vhost_user.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c\nindex 6be5c771b..bf079c914 100644\n--- a/lib/librte_vhost/vhost_user.c\n+++ b/lib/librte_vhost/vhost_user.c\n@@ -2849,8 +2849,11 @@ vhost_user_msg_handler(int vid, int fd)\n \t\tgoto out;\n \n \tif (!(dev->flags & VIRTIO_DEV_VDPA_CONFIGURED)) {\n-\t\tvdpa_dev->ops->dev_conf(dev->vid);\n-\t\tdev->flags |= VIRTIO_DEV_VDPA_CONFIGURED;\n+\t\tif (vdpa_dev->ops->dev_conf(dev->vid))\n+\t\t\tVHOST_LOG_CONFIG(ERR,\n+\t\t\t\t\t \"Failed to configure vDPA device\\n\")\n+\t\telse\n+\t\t\tdev->flags |= VIRTIO_DEV_VDPA_CONFIGURED;\n \t}\n \n out:\n",
    "prefixes": [
        "v2",
        "4/8"
    ]
}