get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132275,
    "url": "http://patches.dpdk.org/api/patches/132275/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231003094721.5115-4-pbhagavatula@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20231003094721.5115-4-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231003094721.5115-4-pbhagavatula@marvell.com",
    "date": "2023-10-03T09:47:21",
    "name": "[v6,3/3] test/event: add event link profile test",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e8d273834b856690eddb65f96293f28067faf8d5",
    "submitter": {
        "id": 1183,
        "url": "http://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231003094721.5115-4-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 29719,
            "url": "http://patches.dpdk.org/api/series/29719/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29719",
            "date": "2023-10-03T09:47:18",
            "name": "Introduce event link profiles",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/29719/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/132275/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/132275/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 1C940426AE;\n\tTue,  3 Oct 2023 11:47:58 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DA11A40608;\n\tTue,  3 Oct 2023 11:47:50 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 63AAD40608\n for <dev@dpdk.org>; Tue,  3 Oct 2023 11:47:48 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3933jmVU023432; Tue, 3 Oct 2023 02:47:47 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3tgbas92v3-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 03 Oct 2023 02:47:47 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Tue, 3 Oct 2023 02:47:45 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Tue, 3 Oct 2023 02:47:45 -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 2CFEB3F704B;\n Tue,  3 Oct 2023 02:47:38 -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=ZJomz5zTA8m69IZNHb808fZ1P2VqJ190A/q3QZbPVlA=;\n b=DTxH8SN9F+HU6ACwJa5c1O7p+YGei3+OM6KoBiHbwqBChXvy1L4bH1Z8NUx8PbJLUsTd\n 0aBIsitVl656uxPpy9QrH1UNQ3V86rJWToSZFeHaqQjL34qF0GLOhQ5Bo1KLVP/lOttM\n +tYO9MbS2Cx0A/qhN7EjUlQm5Mlfkd50AYfs5wuzM1t31/QCQKu0X2VFcMtnqYp27kaV\n 2a5x/8XuZT+Y0ILhGctg+fqhppvdL7MaPL9/cxN7Aiwm8/LomY1Eld+4wxDQLe+aYEox\n zgCYYDbIaJ6AANjz4WFO3+m1l6Z9+Bl1l21Su81o2RRCL0jaQzqyLUc/Luammz5H04sK Yw==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, <pbhagavatula@marvell.com>, <sthotton@marvell.com>,\n <timothy.mcdaniel@intel.com>, <hemant.agrawal@nxp.com>,\n <sachin.saxena@nxp.com>, <mattias.ronnblom@ericsson.com>,\n <liangma@liangbit.com>, <peter.mccarthy@intel.com>,\n <harry.van.haaren@intel.com>, <erik.g.carrillo@intel.com>,\n <abhinandan.gujjar@intel.com>, <s.v.naga.harish.k@intel.com>,\n <anatoly.burakov@intel.com>",
        "CC": "<dev@dpdk.org>",
        "Subject": "[PATCH v6 3/3] test/event: add event link profile test",
        "Date": "Tue, 3 Oct 2023 15:17:21 +0530",
        "Message-ID": "<20231003094721.5115-4-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231003094721.5115-1-pbhagavatula@marvell.com>",
        "References": "<20231003075109.4309-1-pbhagavatula@marvell.com>\n <20231003094721.5115-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "6tLo_Ag4Mfb0TrhUbc3b8TlI7r2h7vCp",
        "X-Proofpoint-GUID": "6tLo_Ag4Mfb0TrhUbc3b8TlI7r2h7vCp",
        "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_06,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\nAdd test case to verify event link profiles.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n app/test/test_eventdev.c | 117 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 117 insertions(+)",
    "diff": "diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c\nindex c51c93bdbd..0ecfa7db02 100644\n--- a/app/test/test_eventdev.c\n+++ b/app/test/test_eventdev.c\n@@ -1129,6 +1129,121 @@ test_eventdev_link_get(void)\n \treturn TEST_SUCCESS;\n }\n \n+static int\n+test_eventdev_profile_switch(void)\n+{\n+#define MAX_RETRIES   4\n+\tuint8_t priorities[RTE_EVENT_MAX_QUEUES_PER_DEV];\n+\tuint8_t queues[RTE_EVENT_MAX_QUEUES_PER_DEV];\n+\tstruct rte_event_queue_conf qcfg;\n+\tstruct rte_event_port_conf pcfg;\n+\tstruct rte_event_dev_info info;\n+\tstruct rte_event ev;\n+\tuint8_t q, re;\n+\tint rc;\n+\n+\trte_event_dev_info_get(TEST_DEV_ID, &info);\n+\n+\tif (info.max_profiles_per_port <= 1)\n+\t\treturn TEST_SKIPPED;\n+\n+\tif (info.max_event_queues <= 1)\n+\t\treturn TEST_SKIPPED;\n+\n+\trc = rte_event_port_default_conf_get(TEST_DEV_ID, 0, &pcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to get port0 default config\");\n+\trc = rte_event_port_setup(TEST_DEV_ID, 0, &pcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to setup port0\");\n+\n+\trc = rte_event_queue_default_conf_get(TEST_DEV_ID, 0, &qcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to get queue0 default config\");\n+\trc = rte_event_queue_setup(TEST_DEV_ID, 0, &qcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to setup queue0\");\n+\n+\tq = 0;\n+\trc = rte_event_port_profile_links_set(TEST_DEV_ID, 0, &q, NULL, 1, 0);\n+\tTEST_ASSERT(rc == 1, \"Failed to link queue 0 to port 0 with profile 0\");\n+\tq = 1;\n+\trc = rte_event_port_profile_links_set(TEST_DEV_ID, 0, &q, NULL, 1, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to link queue 1 to port 0 with profile 1\");\n+\n+\trc = rte_event_port_profile_links_get(TEST_DEV_ID, 0, queues, priorities, 0);\n+\tTEST_ASSERT(rc == 1, \"Failed to links\");\n+\tTEST_ASSERT(queues[0] == 0, \"Invalid queue found in link\");\n+\n+\trc = rte_event_port_profile_links_get(TEST_DEV_ID, 0, queues, priorities, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to links\");\n+\tTEST_ASSERT(queues[0] == 1, \"Invalid queue found in link\");\n+\n+\trc = rte_event_dev_start(TEST_DEV_ID);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to start event device\");\n+\n+\tev.event_type = RTE_EVENT_TYPE_CPU;\n+\tev.queue_id = 0;\n+\tev.op = RTE_EVENT_OP_NEW;\n+\tev.flow_id = 0;\n+\tev.u64 = 0xBADF00D0;\n+\trc = rte_event_enqueue_burst(TEST_DEV_ID, 0, &ev, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to enqueue event\");\n+\tev.queue_id = 1;\n+\tev.flow_id = 1;\n+\trc = rte_event_enqueue_burst(TEST_DEV_ID, 0, &ev, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to enqueue event\");\n+\n+\tev.event = 0;\n+\tev.u64 = 0;\n+\n+\trc = rte_event_port_profile_switch(TEST_DEV_ID, 0, 1);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to change profile\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tprintf(\"rc %d\\n\", rc);\n+\t\tif (rc)\n+\t\t\tbreak;\n+\t}\n+\n+\tTEST_ASSERT(rc == 1, \"Failed to dequeue event from profile 1\");\n+\tTEST_ASSERT(ev.flow_id == 1, \"Incorrect flow identifier from profile 1\");\n+\tTEST_ASSERT(ev.queue_id == 1, \"Incorrect queue identifier from profile 1\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tTEST_ASSERT(rc == 0, \"Unexpected event dequeued from active profile\");\n+\t}\n+\n+\trc = rte_event_port_profile_switch(TEST_DEV_ID, 0, 0);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to change profile\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tif (rc)\n+\t\t\tbreak;\n+\t}\n+\n+\tTEST_ASSERT(rc == 1, \"Failed to dequeue event from profile 1\");\n+\tTEST_ASSERT(ev.flow_id == 0, \"Incorrect flow identifier from profile 0\");\n+\tTEST_ASSERT(ev.queue_id == 0, \"Incorrect queue identifier from profile 0\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tTEST_ASSERT(rc == 0, \"Unexpected event dequeued from active profile\");\n+\t}\n+\n+\tq = 0;\n+\trc = rte_event_port_profile_unlink(TEST_DEV_ID, 0, &q, 1, 0);\n+\tTEST_ASSERT(rc == 1, \"Failed to unlink queue 0 to port 0 with profile 0\");\n+\tq = 1;\n+\trc = rte_event_port_profile_unlink(TEST_DEV_ID, 0, &q, 1, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to unlink queue 1 to port 0 with profile 1\");\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n static int\n test_eventdev_close(void)\n {\n@@ -1187,6 +1302,8 @@ static struct unit_test_suite eventdev_common_testsuite  = {\n \t\t\ttest_eventdev_timeout_ticks),\n \t\tTEST_CASE_ST(NULL, NULL,\n \t\t\ttest_eventdev_start_stop),\n+\t\tTEST_CASE_ST(eventdev_configure_setup, eventdev_stop_device,\n+\t\t\ttest_eventdev_profile_switch),\n \t\tTEST_CASE_ST(eventdev_setup_device, eventdev_stop_device,\n \t\t\ttest_eventdev_link),\n \t\tTEST_CASE_ST(eventdev_setup_device, eventdev_stop_device,\n",
    "prefixes": [
        "v6",
        "3/3"
    ]
}