Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130775/?format=api
http://patchwork.dpdk.org/api/patches/130775/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230825184435.2986-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": "<20230825184435.2986-4-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230825184435.2986-4-pbhagavatula@marvell.com", "date": "2023-08-25T18:44:35", "name": "[3/3] test/event: add event link profile test", "commit_ref": null, "pull_url": null, "state": "superseded", "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/20230825184435.2986-4-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 29349, "url": "http://patchwork.dpdk.org/api/series/29349/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29349", "date": "2023-08-25T18:44:32", "name": "Introduce event link profiles", "version": 1, "mbox": "http://patchwork.dpdk.org/series/29349/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/130775/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/130775/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 9A5D443103;\n\tFri, 25 Aug 2023 20:45:11 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E664843255;\n\tFri, 25 Aug 2023 20:45:04 +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 1E9BE43255\n for <dev@dpdk.org>; Fri, 25 Aug 2023 20:45:03 +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 37PILlsx001856; Fri, 25 Aug 2023 11:45:02 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3spmk2ag2h-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Fri, 25 Aug 2023 11:45:02 -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 Fri, 25 Aug 2023 11:45:00 -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; Fri, 25 Aug 2023 11:45:00 -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 669B83F7093;\n Fri, 25 Aug 2023 11:44:55 -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=DA6flPEhYuMUUECO8O73kWn6cwfOCvDRdt4/AeV6BUTjo/sl6r+ebx2FjZE3gB3T1pak\n gsQwA5rae/jWeAEyyxLdYoaT8pU8pu4TBBi1KuahcaXkOZ44WYfTXZvibywYswnKtR7p\n pWkpy2vY2XHHnXND02X5CiOv8sDjyDJ6YCshDMUn/u5TqqU2OvXgdHknpjEF9i8mBb9S\n HIO5rqx5ZwgSBwAR7jRWz3sVBhpr3xoqS6DSlmGFUHw3fhS1973sfSHpIAyAD+IdLSpq\n fhlGpbVNRiQHeFVRt0cCRIt/HksBHjzAcLkvntasEZU8xoRyNe+wv0FZlWPtXm+1vuGi sQ==", "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 3/3] test/event: add event link profile test", "Date": "Sat, 26 Aug 2023 00:14:35 +0530", "Message-ID": "<20230825184435.2986-4-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230825184435.2986-1-pbhagavatula@marvell.com>", "References": "<20230809142617.6482-1-pbhagavatula@marvell.com>\n <20230825184435.2986-1-pbhagavatula@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "FEllLizxFGOHJDyhssgAu4QpH94Ok4bD", "X-Proofpoint-GUID": "FEllLizxFGOHJDyhssgAu4QpH94Ok4bD", "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-25_16,2023-08-25_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": [ "3/3" ] }{ "id": 130775, "url": "