get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132282,
    "url": "https://patches.dpdk.org/api/patches/132282/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231003150131.6786-1-pbhagavatula@marvell.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": "<20231003150131.6786-1-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231003150131.6786-1-pbhagavatula@marvell.com",
    "date": "2023-10-03T15:01:31",
    "name": "eventdev: fix port link and unlink",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c6bd659a3dab75e9e82b050e0ed5d90f0a327aca",
    "submitter": {
        "id": 1183,
        "url": "https://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231003150131.6786-1-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 29722,
            "url": "https://patches.dpdk.org/api/series/29722/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29722",
            "date": "2023-10-03T15:01:31",
            "name": "eventdev: fix port link and unlink",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/29722/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/132282/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/132282/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 859C84269F;\n\tTue,  3 Oct 2023 17:01:41 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 10C51402A2;\n\tTue,  3 Oct 2023 17:01:41 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 946E540262\n for <dev@dpdk.org>; Tue,  3 Oct 2023 17:01:39 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 393EU1Ot028374; Tue, 3 Oct 2023 08:01:38 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tek6n0t0n-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 03 Oct 2023 08:01:37 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Tue, 3 Oct 2023 08:01:35 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Tue, 3 Oct 2023 08:01:35 -0700",
            "from MININT-80QBFE8.corp.innovium.com (MININT-80QBFE8.marvell.com\n [10.28.164.106])\n by maili.marvell.com (Postfix) with ESMTP id 1CEA23F707F;\n Tue,  3 Oct 2023 08:01:30 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=nvOXwzW9dOHZ8gFPeHfTg3o5KzdyMr5iggJpl5VqewQ=;\n b=iqij7N2fw28dBZRo1N+t/3zLBrUT0l3MOuIsx04a83GdVhbJXa/7IXPNhS6ApPX2gQ8s\n 9EY1YS4Tc1bYGobvU5QPycVmypeapLm1fRQLVVp3AkvDzxksxuFNXc46WTDjpp7N4hgY\n qtoXhFU4oMk/5Cu9b050KZSRBVPhPldMXKlMH3r3bP6LD4IJliAXeoegiEABA85zz/72\n cCallyBWqM0fTgZdlkYhKNZqUn35PNLqFKXeAfkh4l252hHfCWjxt5VmIPis/tieAVxn\n bZ5/mEFhxSrGnr8loJbhaUrVxrzm6p+HEX/vss9hSFvXb+xtAvFM6ommHgsLwfaT4NR0 RQ==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, <bruce.richardson@intel.com>",
        "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "Subject": "[PATCH] eventdev: fix port link and unlink",
        "Date": "Tue, 3 Oct 2023 20:31:31 +0530",
        "Message-ID": "<20231003150131.6786-1-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "izLidKabt2cqBzHUVl926MQSGhJqd2Zh",
        "X-Proofpoint-GUID": "izLidKabt2cqBzHUVl926MQSGhJqd2Zh",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-10-03_12,2023-10-02_01,2023-05-22_02",
        "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": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nPort link and unlink rely on info get API to validate max\nsupported profiles, the default max profiles is initialized\nin ``rte_dev_info_get`` API, use it instead of invoking\ndriver callback.\n\nFixes: 162aa4e1b479 (\"eventdev: introduce link profiles\")\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n- Please Squash\n\n lib/eventdev/rte_eventdev.c | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)\n\n--\n2.25.1",
    "diff": "diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c\nindex 5ee8bd665b..27b819d605 100644\n--- a/lib/eventdev/rte_eventdev.c\n+++ b/lib/eventdev/rte_eventdev.c\n@@ -995,10 +995,10 @@ rte_event_port_profile_links_set(uint8_t dev_id, uint8_t port_id, const uint8_t\n \tRTE_EVENTDEV_VALID_DEVID_OR_ERRNO_RET(dev_id, EINVAL, 0);\n \tdev = &rte_eventdevs[dev_id];\n\n-\tif (*dev->dev_ops->dev_infos_get == NULL)\n-\t\treturn -ENOTSUP;\n+\tdiag = rte_event_dev_info_get(dev_id, &info);\n+\tif (diag < 0)\n+\t\treturn diag;\n\n-\t(*dev->dev_ops->dev_infos_get)(dev, &info);\n \tif (profile_id >= RTE_EVENT_MAX_PROFILES_PER_PORT ||\n \t    profile_id >= info.max_profiles_per_port) {\n \t\tRTE_EDEV_LOG_ERR(\"Invalid profile_id=%\" PRIu8, profile_id);\n@@ -1083,10 +1083,10 @@ rte_event_port_profile_unlink(uint8_t dev_id, uint8_t port_id, uint8_t queues[],\n \tRTE_EVENTDEV_VALID_DEVID_OR_ERRNO_RET(dev_id, EINVAL, 0);\n \tdev = &rte_eventdevs[dev_id];\n\n-\tif (*dev->dev_ops->dev_infos_get == NULL)\n-\t\treturn -ENOTSUP;\n+\tdiag = rte_event_dev_info_get(dev_id, &info);\n+\tif (diag < 0)\n+\t\treturn diag;\n\n-\t(*dev->dev_ops->dev_infos_get)(dev, &info);\n \tif (profile_id >= RTE_EVENT_MAX_PROFILES_PER_PORT ||\n \t    profile_id >= info.max_profiles_per_port) {\n \t\tRTE_EDEV_LOG_ERR(\"Invalid profile_id=%\" PRIu8, profile_id);\n@@ -1223,12 +1223,12 @@ rte_event_port_profile_links_get(uint8_t dev_id, uint8_t port_id, uint8_t queues\n \tint i, count = 0;\n\n \tRTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL);\n-\n \tdev = &rte_eventdevs[dev_id];\n-\tif (*dev->dev_ops->dev_infos_get == NULL)\n-\t\treturn -ENOTSUP;\n\n-\t(*dev->dev_ops->dev_infos_get)(dev, &info);\n+\tdiag = rte_event_dev_info_get(dev_id, &info);\n+\tif (diag < 0)\n+\t\treturn diag;\n+\n \tif (profile_id >= RTE_EVENT_MAX_PROFILES_PER_PORT ||\n \t    profile_id >= info.max_profiles_per_port) {\n \t\tRTE_EDEV_LOG_ERR(\"Invalid profile_id=%\" PRIu8, profile_id);\n",
    "prefixes": []
}