get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130576,
    "url": "http://patchwork.dpdk.org/api/patches/130576/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230821113549.3191921-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": "<20230821113549.3191921-14-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230821113549.3191921-14-david.marchand@redhat.com",
    "date": "2023-08-21T11:35:46",
    "name": "[v2,13/15] pci: define some PRI constants",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ac72035bbc76d9dcad98af017cd3d490295bd346",
    "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/20230821113549.3191921-14-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 29292,
            "url": "http://patchwork.dpdk.org/api/series/29292/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29292",
            "date": "2023-08-21T11:35:33",
            "name": "Cleanup PCI(e) drivers",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/29292/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130576/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130576/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 32775430C1;\n\tMon, 21 Aug 2023 13:38:44 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6EC30432B4;\n\tMon, 21 Aug 2023 13:36:50 +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 075C1432B3\n for <dev@dpdk.org>; Mon, 21 Aug 2023 13:36:48 +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-497-EqSCui0aPSyd_1NwHgF6Iw-1; Mon, 21 Aug 2023 07:36:45 -0400",
            "from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com\n [10.11.54.8])\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 DCF4685C710;\n Mon, 21 Aug 2023 11:36:44 +0000 (UTC)",
            "from dmarchan.redhat.com (unknown [10.45.226.19])\n by smtp.corp.redhat.com (Postfix) with ESMTP id 7489EC15BAE;\n Mon, 21 Aug 2023 11:36:43 +0000 (UTC)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1692617808;\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=6rC+5cKDO2rOUf1rOm8R4iKMYI7J017zFZj6yomqcnA=;\n b=jBulIoIZiLcy0m4PgxaPLK/MhlyNWAHdAFNh6cY+Hi4/UHkikaEH6KD6i6OdaEZdprRGzS\n vTz4gnl5T5e9T5t3T/R+C8ggfTvRwdwb+nrWz4uc3ZyjcfqDyL8B5eqjBlx5O/vAxybOS3\n ULRQPu948v5TnpRmUXCJYG6DWNYjl8E=",
        "X-MC-Unique": "EqSCui0aPSyd_1NwHgF6Iw-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 Timothy McDaniel <timothy.mcdaniel@intel.com>,\n Gaetan Rivet <grive@u256.net>",
        "Subject": "[PATCH v2 13/15] pci: define some PRI constants",
        "Date": "Mon, 21 Aug 2023 13:35:46 +0200",
        "Message-ID": "<20230821113549.3191921-14-david.marchand@redhat.com>",
        "In-Reply-To": "<20230821113549.3191921-1-david.marchand@redhat.com>",
        "References": "<20230803075038.307012-1-david.marchand@redhat.com>\n <20230821113549.3191921-1-david.marchand@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.1 on 10.11.54.8",
        "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 PCI PRI extended feature 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 | 11 ++++-------\n lib/pci/rte_pci.h                 |  5 +++++\n 2 files changed, 9 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/event/dlb2/pf/dlb2_main.c b/drivers/event/dlb2/pf/dlb2_main.c\nindex 8e729d1964..187a356c24 100644\n--- a/drivers/event/dlb2/pf/dlb2_main.c\n+++ b/drivers/event/dlb2/pf/dlb2_main.c\n@@ -27,9 +27,6 @@\n #define NO_OWNER_VF 0\t/* PF ONLY! */\n #define NOT_VF_REQ false /* PF ONLY! */\n \n-#define DLB2_PCI_PRI_CTRL_ENABLE         0x1\n-#define DLB2_PCI_PRI_ALLOC_REQ           0xC\n-#define DLB2_PCI_PRI_CTRL                0x4\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@@ -257,7 +254,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \tpri_cap_offset = rte_pci_find_ext_capability(pdev, off);\n \n \tif (pri_cap_offset >= 0) {\n-\t\toff = pri_cap_offset + DLB2_PCI_PRI_ALLOC_REQ;\n+\t\toff = pri_cap_offset + RTE_PCI_PRI_ALLOC_REQ;\n \t\tif (rte_pci_read_config(pdev, &pri_reqs_dword, 4, off) != 4)\n \t\t\tpri_reqs_dword = 0;\n \t}\n@@ -377,9 +374,9 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t}\n \n \tif (pri_cap_offset >= 0) {\n-\t\tpri_ctrl_word = DLB2_PCI_PRI_CTRL_ENABLE;\n+\t\tpri_ctrl_word = RTE_PCI_PRI_CTRL_ENABLE;\n \n-\t\toff = pri_cap_offset + DLB2_PCI_PRI_ALLOC_REQ;\n+\t\toff = pri_cap_offset + RTE_PCI_PRI_ALLOC_REQ;\n \t\tret = rte_pci_write_config(pdev, &pri_reqs_dword, 4, off);\n \t\tif (ret != 4) {\n \t\t\tDLB2_LOG_ERR(\"[%s()] failed to write the pcie config space at offset %d\\n\",\n@@ -387,7 +384,7 @@ dlb2_pf_reset(struct dlb2_dev *dlb2_dev)\n \t\t\treturn ret;\n \t\t}\n \n-\t\toff = pri_cap_offset + DLB2_PCI_PRI_CTRL;\n+\t\toff = pri_cap_offset + RTE_PCI_PRI_CTRL;\n \t\tret = rte_pci_write_config(pdev, &pri_ctrl_word, 2, off);\n \t\tif (ret != 2) {\n \t\t\tDLB2_LOG_ERR(\"[%s()] failed to write the pcie config space at offset %d\\n\",\ndiff --git a/lib/pci/rte_pci.h b/lib/pci/rte_pci.h\nindex a385285c94..b23671a2cf 100644\n--- a/lib/pci/rte_pci.h\n+++ b/lib/pci/rte_pci.h\n@@ -122,6 +122,11 @@ extern \"C\" {\n #define RTE_PCI_SRIOV_VF_DID\t\t0x1a\t/* VF Device ID */\n #define RTE_PCI_SRIOV_SUP_PGSIZE\t0x1c\t/* Supported Page Sizes */\n \n+/* Page Request Interface (RTE_PCI_EXT_CAP_ID_PRI) */\n+#define RTE_PCI_PRI_CTRL\t\t0x04\t/* PRI control register */\n+#define RTE_PCI_PRI_CTRL_ENABLE\t\t0x0001\t/* Enable */\n+#define RTE_PCI_PRI_ALLOC_REQ\t\t0x0c\t/* PRI max reqs allowed */\n+\n /** Formatting string for PCI device identifier: Ex: 0000:00:01.0 */\n #define PCI_PRI_FMT \"%.4\" PRIx32 \":%.2\" PRIx8 \":%.2\" PRIx8 \".%\" PRIx8\n #define PCI_PRI_STR_SIZE sizeof(\"XXXXXXXX:XX:XX.X\")\n",
    "prefixes": [
        "v2",
        "13/15"
    ]
}