get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129882,
    "url": "http://patchwork.dpdk.org/api/patches/129882/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230803075038.307012-14-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": "<20230803075038.307012-14-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230803075038.307012-14-david.marchand@redhat.com",
    "date": "2023-08-03T07:50:36",
    "name": "[13/14] pci: define some AER constants",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5e2362b669cffd0442a6423d578c67de00fe76da",
    "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/20230803075038.307012-14-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 29101,
            "url": "http://patchwork.dpdk.org/api/series/29101/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29101",
            "date": "2023-08-03T07:50:23",
            "name": "Cleanup PCI(e) drivers",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29101/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/129882/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/129882/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 0CEFD42FC1;\n\tThu,  3 Aug 2023 09:52:26 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0627043282;\n\tThu,  3 Aug 2023 09:51:40 +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 DBF2543258\n for <dev@dpdk.org>; Thu,  3 Aug 2023 09:51:38 +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-227-h4ISvyCoNSiQ2pC3i6vYVw-1; Thu, 03 Aug 2023 03:51:33 -0400",
            "from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com\n [10.11.54.10])\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 C97F2856F67;\n Thu,  3 Aug 2023 07:51:32 +0000 (UTC)",
            "from dmarchan.redhat.com (unknown [10.45.224.120])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 7DEA04021B9;\n Thu,  3 Aug 2023 07:51:31 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1691049098;\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=vH23Cz5Uop2SIo/i0v78PsTKm5h90Of+YZj5THlsSMs=;\n b=O/hSE+lregqQZasy3hg0L5raEvSAB2OKSToKtxrpy14wGNk2RFzLJqAob+of74m1sQT2QH\n qnWPsKST05yUh4JLd9K/AdVmYSucxFPowgUEta5XIFeqvu89m0jeY1B0OLUXJTKuXlZ4zk\n TVf6A8qE7ZtlwsRHIlmB/rAvuiKxdSg=",
        "X-MC-Unique": "h4ISvyCoNSiQ2pC3i6vYVw-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, Timothy McDaniel <timothy.mcdaniel@intel.com>,\n Gaetan Rivet <grive@u256.net>",
        "Subject": "[PATCH 13/14] pci: define some AER constants",
        "Date": "Thu,  3 Aug 2023 09:50:36 +0200",
        "Message-ID": "<20230803075038.307012-14-david.marchand@redhat.com>",
        "In-Reply-To": "<20230803075038.307012-1-david.marchand@redhat.com>",
        "References": "<20230803075038.307012-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.10",
        "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>\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 0dc8733e1d..c7552a53eb 100644\n--- a/lib/pci/rte_pci.h\n+++ b/lib/pci/rte_pci.h\n@@ -100,6 +100,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 */\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 */\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": [
        "13/14"
    ]
}