Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/131003/?format=api
http://patchwork.dpdk.org/api/patches/131003/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230831204424.13367-4-pbhagavatula@marvell.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": "<20230831204424.13367-4-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230831204424.13367-4-pbhagavatula@marvell.com", "date": "2023-08-31T20:44:24", "name": "[v2,3/3] test/event: add event link profile test", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "cdd5dd9ee00388ca9d70530ae361b2f02ec646ee", "submitter": { "id": 1183, "url": "http://patchwork.dpdk.org/api/people/1183/?format=api", "name": "Pavan Nikhilesh Bhagavatula", "email": "pbhagavatula@marvell.com" }, "delegate": { "id": 310, "url": "http://patchwork.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230831204424.13367-4-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 29396, "url": "http://patchwork.dpdk.org/api/series/29396/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29396", "date": "2023-08-31T20:44:21", "name": "Introduce event link profiles", "version": 2, "mbox": "http://patchwork.dpdk.org/series/29396/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/131003/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/131003/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 E70EA42216;\n\tThu, 31 Aug 2023 22:45:04 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 210BB4029A;\n\tThu, 31 Aug 2023 22:44:52 +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 8E8F0402A6\n for <dev@dpdk.org>; Thu, 31 Aug 2023 22:44:50 +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 37VCQs7w016790; Thu, 31 Aug 2023 13:44:49 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sttvb9wbe-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 31 Aug 2023 13:44:49 -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 Thu, 31 Aug 2023 13:44:47 -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; Thu, 31 Aug 2023 13:44:48 -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 12F563F703F;\n Thu, 31 Aug 2023 13:44:42 -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=TVG43hI0ewJh4EUVirljEDzM0Uf1aCXrfGNUL+D8+6A=;\n b=Lg81WWxEaQAz8DRhJnI+1S53MK1lvYnHnek1Uf1UW/evahE7mqwjWEB7hmarTrl9DU5/\n He3ZHJpZnT1zcVuntsBf1fMvvSQmkLCS7cUWCn24g9xzT6/co9ZjsUdfkDIvljzVWzeH\n I5ZUtV5D8lwmyR8v2RifWrVNse9ce95jkMPvUc9ffCV6UUzb6RQDGAgMCUKjL1LsCihm\n HyxE1kla+ngL0x8veTyVKfqzRdFa63ykksG/72+uRBlARq5OVCbw/Vt1I0qqfEp4pSDQ\n phCuSMmoicjrd5g/IBCXmRO65ZKenfhhqxF/NRrvBUIpmnOTfnZJYLRlz8X/3vK5IXUR nQ==", "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 v2 3/3] test/event: add event link profile test", "Date": "Fri, 1 Sep 2023 02:14:24 +0530", "Message-ID": "<20230831204424.13367-4-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230831204424.13367-1-pbhagavatula@marvell.com>", "References": "<20230825184435.2986-1-pbhagavatula@marvell.com>\n <20230831204424.13367-1-pbhagavatula@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "XnbTcipbbA_kO1qxqO-MuZG5nZuC09zF", "X-Proofpoint-GUID": "XnbTcipbbA_kO1qxqO-MuZG5nZuC09zF", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26\n definitions=2023-08-31_18,2023-08-31_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 29354a24c9..b333fec634 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_change_profile(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_change_profile),\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": [ "v2", "3/3" ] }{ "id": 131003, "url": "