get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131427,
    "url": "http://patchwork.dpdk.org/api/patches/131427/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230914123615.1705654-15-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": "<20230914123615.1705654-15-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230914123615.1705654-15-david.marchand@redhat.com",
    "date": "2023-09-14T12:36:13",
    "name": "[v3,14/15] pci: define some AER constants",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "8968941128252fd2ceee3913dfb5735a0b7d1b44",
    "submitter": {
        "id": 1173,
        "url": "http://patchwork.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230914123615.1705654-15-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 29507,
            "url": "http://patchwork.dpdk.org/api/series/29507/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29507",
            "date": "2023-09-14T12:35:59",
            "name": "Cleanup PCI(e) drivers",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/29507/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/131427/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/131427/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 20B1B42597;\n\tThu, 14 Sep 2023 14:38:11 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5588240A72;\n\tThu, 14 Sep 2023 14:37:21 +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 DFF134064A\n for <dev@dpdk.org>; Thu, 14 Sep 2023 14:37:19 +0200 (CEST)",
            "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-279-V-XICgNXM-SFGCAL4RZbdg-1; Thu, 14 Sep 2023 08:37:15 -0400",
            "from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com\n [10.11.54.3])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C90B081DBE7;\n Thu, 14 Sep 2023 12:37:14 +0000 (UTC)",
            "from dmarchan.redhat.com (unknown [10.45.225.25])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 59F2510F1BE7;\n Thu, 14 Sep 2023 12:37:13 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1694695039;\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=LBJQmHRLS3Jjq58Sh5RO/4F6r/gelJSMeFEjLdqjmGY=;\n b=R4DOgnEphMYAtejcLOwmHtrwh6BVNMk2OmLj7Bcg7/ryUo24p6GGO/pU7Ob2TR2RXoj+Bj\n 8mt9zL63rCPGva4CDhjlrYPt7Y9ns30PZ16x1xFIYXgpOnLkKm5clYuYbEgaF0B8MZ1xxQ\n 9NCpZF2QW0IDFUn+IW3DaFc9VTRPWts=",
        "X-MC-Unique": "V-XICgNXM-SFGCAL4RZbdg-1",
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "thomas@monjalon.net, ferruh.yigit@amd.com, chenbo.xia@intel.com,\n nipun.gupta@amd.com, bruce.richardson@intel.com,\n Abdullah Sevincer <abdullah.sevincer@intel.com>,\n Gaetan Rivet <grive@u256.net>",
        "Subject": "[PATCH v3 14/15] pci: define some AER constants",
        "Date": "Thu, 14 Sep 2023 14:36:13 +0200",
        "Message-ID": "<20230914123615.1705654-15-david.marchand@redhat.com>",
        "In-Reply-To": "<20230914123615.1705654-1-david.marchand@redhat.com>",
        "References": "<20230803075038.307012-1-david.marchand@redhat.com>\n <20230914123615.1705654-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.3",
        "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": "Define some Advanced Error Reporting constants and use them in existing\ndrivers.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/event/dlb2/pf/dlb2_main.c | 10 +++-------\n lib/pci/rte_pci.h                 |  5 +++++\n 2 files changed, 8 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/event/dlb2/pf/dlb2_main.c b/drivers/event/dlb2/pf/dlb2_main.c\nindex 187a356c24..aa03e4c311 100644\n--- a/drivers/event/dlb2/pf/dlb2_main.c\n+++ b/drivers/event/dlb2/pf/dlb2_main.c\n@@ -27,10 +27,6 @@\n #define NO_OWNER_VF 0\t/* PF ONLY! */\n #define NOT_VF_REQ false /* PF ONLY! */\n \n-#define DLB2_PCI_ERR_ROOT_STATUS         0x30\n-#define DLB2_PCI_ERR_COR_STATUS          0x10\n-#define DLB2_PCI_ERR_UNCOR_STATUS        0x4\n-\n static int\n dlb2_pf_init_driver_state(struct dlb2_dev *dlb2_dev)\n {\n@@ -399,7 +395,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \tif (err_cap_offset >= 0) {\n \t\tuint32_t tmp;\n \n-\t\toff = err_cap_offset + DLB2_PCI_ERR_ROOT_STATUS;\n+\t\toff = err_cap_offset + RTE_PCI_ERR_ROOT_STATUS;\n \t\tif (rte_pci_read_config(pdev, &tmp, 4, off) != 4)\n \t\t\ttmp = 0;\n \n@@ -410,7 +406,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t\t\treturn ret;\n \t\t}\n \n-\t\toff = err_cap_offset + DLB2_PCI_ERR_COR_STATUS;\n+\t\toff = err_cap_offset + RTE_PCI_ERR_COR_STATUS;\n \t\tif (rte_pci_read_config(pdev, &tmp, 4, off) != 4)\n \t\t\ttmp = 0;\n \n@@ -421,7 +417,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t\t\treturn ret;\n \t\t}\n \n-\t\toff = err_cap_offset + DLB2_PCI_ERR_UNCOR_STATUS;\n+\t\toff = err_cap_offset + RTE_PCI_ERR_UNCOR_STATUS;\n \t\tif (rte_pci_read_config(pdev, &tmp, 4, off) != 4)\n \t\t\ttmp = 0;\n \ndiff --git a/lib/pci/rte_pci.h b/lib/pci/rte_pci.h\nindex 6bbcad20f2..69e932d910 100644\n--- a/lib/pci/rte_pci.h\n+++ b/lib/pci/rte_pci.h\n@@ -102,6 +102,11 @@ extern \"C\" {\n #define RTE_PCI_EXT_CAP_ID_SRIOV\t0x10\t/* SR-IOV */\n #define RTE_PCI_EXT_CAP_ID_PRI\t\t0x13\t/* Page Request Interface */\n \n+/* Advanced Error Reporting (RTE_PCI_EXT_CAP_ID_ERR) */\n+#define RTE_PCI_ERR_UNCOR_STATUS\t0x04\t/* Uncorrectable Error Status */\n+#define RTE_PCI_ERR_COR_STATUS\t\t0x10\t/* Correctable Error Status */\n+#define RTE_PCI_ERR_ROOT_STATUS\t\t0x30\n+\n /* Access Control Service (RTE_PCI_EXT_CAP_ID_ACS) */\n #define RTE_PCI_ACS_CAP\t\t\t0x04\t/* ACS Capability Register */\n #define RTE_PCI_ACS_CTRL\t\t0x06\t/* ACS Control Register */\n",
    "prefixes": [
        "v3",
        "14/15"
    ]
}