get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 123532,
    "url": "http://patches.dpdk.org/api/patches/123532/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230209091710.485512-13-maxime.coquelin@redhat.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": "<20230209091710.485512-13-maxime.coquelin@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230209091710.485512-13-maxime.coquelin@redhat.com",
    "date": "2023-02-09T09:17:01",
    "name": "[12/21] net/virtio-user: fix device starting failure handling",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a07c90577f61aeabf0b8e78246f9b48d9ae69911",
    "submitter": {
        "id": 512,
        "url": "http://patches.dpdk.org/api/people/512/?format=api",
        "name": "Maxime Coquelin",
        "email": "maxime.coquelin@redhat.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/20230209091710.485512-13-maxime.coquelin@redhat.com/mbox/",
    "series": [
        {
            "id": 26913,
            "url": "http://patches.dpdk.org/api/series/26913/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26913",
            "date": "2023-02-09T09:16:49",
            "name": "Add control queue & MQ support to Virtio-user vDPA",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/26913/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/123532/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/123532/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 6109741C4D;\n\tThu,  9 Feb 2023 10:18:42 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7225442D6C;\n\tThu,  9 Feb 2023 10:17:40 +0100 (CET)",
            "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 5323742D5A\n for <dev@dpdk.org>; Thu,  9 Feb 2023 10:17:36 +0100 (CET)",
            "from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com\n [66.187.233.88]) 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-381-ARdkmb7zMRGWIgxQemS3gQ-1; Thu, 09 Feb 2023 04:17:34 -0500",
            "from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com\n [10.11.54.9])\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 145BE8432D1;\n Thu,  9 Feb 2023 09:17:34 +0000 (UTC)",
            "from max-t490s.redhat.com (unknown [10.39.208.26])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 8D33D492C3F;\n Thu,  9 Feb 2023 09:17:32 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1675934255;\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=Kzn4RP6ejs9IaKYofIOBj5wLRdjAXvd5m3ypYnE8DaE=;\n b=X691iFC4TRXIKVjrR2ZUytcb463mVj/MexrcHegFSHqxKgikZszZRTO0SD1XCXZ6TZcV1B\n 4rmh+T2MZwmticOs9+Ixk6qsl4TG3TDCpCDWspofsRaaQxH1QrKv18Q/rEGSPAuNslOKPP\n jdniqpj/T54GtD6pKCxovmskjXOuzFc=",
        "X-MC-Unique": "ARdkmb7zMRGWIgxQemS3gQ-1",
        "From": "Maxime Coquelin <maxime.coquelin@redhat.com>",
        "To": "dev@dpdk.org, chenbo.xia@intel.com, david.marchand@redhat.com,\n eperezma@redhat.com, stephen@networkplumber.org",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n\tstable@dpdk.org",
        "Subject": "[PATCH 12/21] net/virtio-user: fix device starting failure handling",
        "Date": "Thu,  9 Feb 2023 10:17:01 +0100",
        "Message-Id": "<20230209091710.485512-13-maxime.coquelin@redhat.com>",
        "In-Reply-To": "<20230209091710.485512-1-maxime.coquelin@redhat.com>",
        "References": "<20230209091710.485512-1-maxime.coquelin@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.9",
        "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": "If the device fails to start, read the status from the\ndevice and return early.\n\nFixes: 57912824615f (\"net/virtio-user: support vhost status setting\")\nCc: stable@dpdk.org\n\nSigned-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>\nReviewed-by: Chenbo Xia <chenbo.xia@intel.com>\n---\n drivers/net/virtio/virtio_user_ethdev.c | 11 ++++++++---\n 1 file changed, 8 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_user_ethdev.c b/drivers/net/virtio/virtio_user_ethdev.c\nindex d32abec327..78b1ed9ace 100644\n--- a/drivers/net/virtio/virtio_user_ethdev.c\n+++ b/drivers/net/virtio/virtio_user_ethdev.c\n@@ -90,10 +90,15 @@ virtio_user_set_status(struct virtio_hw *hw, uint8_t status)\n \tif (status & VIRTIO_CONFIG_STATUS_FEATURES_OK &&\n \t\t\t~old_status & VIRTIO_CONFIG_STATUS_FEATURES_OK)\n \t\tvirtio_user_dev_set_features(dev);\n-\tif (status & VIRTIO_CONFIG_STATUS_DRIVER_OK)\n-\t\tvirtio_user_start_device(dev);\n-\telse if (status == VIRTIO_CONFIG_STATUS_RESET)\n+\n+\tif (status & VIRTIO_CONFIG_STATUS_DRIVER_OK) {\n+\t\tif (virtio_user_start_device(dev)) {\n+\t\t\tvirtio_user_dev_update_status(dev);\n+\t\t\treturn;\n+\t\t}\n+\t} else if (status == VIRTIO_CONFIG_STATUS_RESET) {\n \t\tvirtio_user_reset(hw);\n+\t}\n \n \tvirtio_user_dev_set_status(dev, status);\n }\n",
    "prefixes": [
        "12/21"
    ]
}