Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130047/?format=api
http://patchwork.dpdk.org/api/patches/130047/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230809142617.6482-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": "<20230809142617.6482-4-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230809142617.6482-4-pbhagavatula@marvell.com", "date": "2023-08-09T14:26:17", "name": "[RFC,3/3] test/event: add event link profile test", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "90b934599acb21364083221a4b3047c5183aa279", "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/20230809142617.6482-4-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 29145, "url": "http://patchwork.dpdk.org/api/series/29145/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29145", "date": "2023-08-09T14:26:14", "name": "Introduce event link profiles", "version": 1, "mbox": "http://patchwork.dpdk.org/series/29145/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/130047/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/130047/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 3825843019;\n\tWed, 9 Aug 2023 16:27:03 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1D2C84325C;\n\tWed, 9 Aug 2023 16:26:57 +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 CD8BB43257\n for <dev@dpdk.org>; Wed, 9 Aug 2023 16:26:54 +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 37966qrj024996; Wed, 9 Aug 2023 07:26:54 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sc57shjge-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 09 Aug 2023 07:26:53 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Wed, 9 Aug 2023 07:26:52 -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; Wed, 9 Aug 2023 07:26:52 -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 58A6E5B6929;\n Wed, 9 Aug 2023 07:26:47 -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=qR9+35fY4TgvZmmYK/xLiAtNmNmrOXfFPFb/cMqCpL4=;\n b=c+ArZ0vEslsL+UbKoHIvBKm3XooqKjJpeVByizj35uUh/8B6j2dwHJNc7kQ4OSYo5Ojc\n mpMR638VHIFDeTVs0AxrECtHaJ3NvQpcZE/Ery0kk/mxP3RzKPw7u3XVQJpM6WvXKJTB\n /dULf85Rr6tkt1RPreEO5NEeszpx98xO6hiYRzu5OH3p9HG2jKNUWYU17SgQJkALRPdN\n dLY7aKyQZJ5zjSLWHsAFVaoAaNXF1vtj6i7DAD+0qRdIEiZk1JVca3eERFU+4ONJoGJ5\n h1wN8XP1cahWldfRxXz4DB5MxFwFPanrXbrc9096iaQXunBZLZa4/t5e5wa0mTF8Eng8 Tw==", "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": "[RFC 3/3] test/event: add event link profile test", "Date": "Wed, 9 Aug 2023 19:56:17 +0530", "Message-ID": "<20230809142617.6482-4-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230809142617.6482-1-pbhagavatula@marvell.com>", "References": "<20230809142617.6482-1-pbhagavatula@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "4lYm3WUiajn6oL5nObUmH6Y631pUj2dT", "X-Proofpoint-ORIG-GUID": "4lYm3WUiajn6oL5nObUmH6Y631pUj2dT", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-09_11,2023-08-09_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 | 110 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 110 insertions(+)", "diff": "diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c\nindex 336529038e..acce7cced8 100644\n--- a/app/test/test_eventdev.c\n+++ b/app/test/test_eventdev.c\n@@ -1129,6 +1129,114 @@ 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_link_with_profile(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_link_with_profile(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_links_get_with_profile(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_links_get_with_profile(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_change_profile(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_change_profile(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+\treturn TEST_SUCCESS;\n+}\n+\n static int\n test_eventdev_close(void)\n {\n@@ -1187,6 +1295,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": [ "RFC", "3/3" ] }{ "id": 130047, "url": "