get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132283,
    "url": "https://patches.dpdk.org/api/patches/132283/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231003150829.8257-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": "<20231003150829.8257-1-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231003150829.8257-1-pbhagavatula@marvell.com",
    "date": "2023-10-03T15:08:29",
    "name": "[v2] eventdev: fix port link and unlink",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f82f10acd0045da07eb40f32909b5a1dba6761af",
    "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/20231003150829.8257-1-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 29723,
            "url": "https://patches.dpdk.org/api/series/29723/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29723",
            "date": "2023-10-03T15:08:29",
            "name": "[v2] eventdev: fix port link and unlink",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/29723/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/132283/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/132283/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 5E9654269F;\n\tTue,  3 Oct 2023 17:08:39 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 256A5402A2;\n\tTue,  3 Oct 2023 17:08:39 +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 5E45040262\n for <dev@dpdk.org>; Tue,  3 Oct 2023 17:08:37 +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 393E43S0028431; Tue, 3 Oct 2023 08:08:36 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tek6n0u5a-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 03 Oct 2023 08:08:36 -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:08:34 -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:08:34 -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 391633F707F;\n Tue,  3 Oct 2023 08:08:29 -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 : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=9dix7sv9O34Vw/uGhbcUulSjU4yMShlxWqUh3ZP5Vzw=;\n b=h66+iLpiezjkKCTX4W1st6k4jdILCnnkH/sL1O7kKIMgcwOjJ9/EeKg7hFRCln2s6iu4\n zt4FTax+Y0ea/IHhA3HoAGgWGRzEsAVSvyMwatBcmkNN9bgaTisp7UckxqEg9dBh/Zr2\n 2A36dm9Z+4NeT9sGtasS/5S4EsdAN0TIXqfxiqyTJFK0tAXFNdzhoSgSRzRKFnkwe7q9\n GkAqOGDQqhKgA3SQXGitpEmOWxGEwn3iftNxyAr/MPpol11jMpdMrZ0W3EnPzcc3YL38\n vFxHvHyb25lqONi9Bm1hI9fJeL+xj2no7xRgDrQbtTROIr6nLovL2UqzpwdOaxEkZk26 hg==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, <bruce.richardson@intel.com>",
        "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "Subject": "[PATCH v2] eventdev: fix port link and unlink",
        "Date": "Tue, 3 Oct 2023 20:38:29 +0530",
        "Message-ID": "<20231003150829.8257-1-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231003150131.6786-1-pbhagavatula@marvell.com>",
        "References": "<20231003150131.6786-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "5nXg8e48_WQ_c1JqbSDvJCDSwd61J7Dt",
        "X-Proofpoint-GUID": "5nXg8e48_WQ_c1JqbSDvJCDSwd61J7Dt",
        "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 lib/eventdev/rte_eventdev.c | 22 +++++++++++-----------\n 1 file changed, 11 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c\nindex 5ee8bd665b..64fd5a70ae 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@@ -1219,16 +1219,16 @@ rte_event_port_profile_links_get(uint8_t dev_id, uint8_t port_id, uint8_t queues\n {\n \tstruct rte_event_dev_info info;\n \tstruct rte_eventdev *dev;\n+\tint i, diag, count = 0;\n \tuint16_t *links_map;\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": [
        "v2"
    ]
}