From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0075.outbound.protection.outlook.com [104.47.33.75]) by dpdk.org (Postfix) with ESMTP id 1A7D5FB44 for ; Fri, 3 Mar 2017 18:31:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=TyfhNi5FU3q3q6GSsc+SMha9GAVDFmEc1CXB0twP07g=; b=hit0Q8UqMAi2NuCroU+HFCSMThkVNuZnfxgzuYcHGtUFLNZi3AMaKZgmJZTad6QP3oaMUlFM+Xa/n+j93NavBca/sMSdznSwYQjTywVM5If1oWtsQ9YwS/4fOY0eGsqyWkbjF9nLD+0KCUmgsIw99Ke0O4Rt7S0Zp+A+MOUQ5L8= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain.localdomain (14.140.2.178) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Fri, 3 Mar 2017 17:31:19 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas.monjalon@6wind.com, bruce.richardson@intel.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, gage.eads@intel.com, nipun.gupta@nxp.com, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Fri, 3 Mar 2017 22:58:18 +0530 Message-Id: <1488562101-6658-37-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0021.INDPRD01.PROD.OUTLOOK.COM (10.174.214.159) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: c837157c-1a4f-49f6-cc6b-08d4625b1c8e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:UIuVUEJ9LnkN6LKjkEO0+MM6XWAyWP+frKclcQWpOw75Twwtp+FsqpoOYT/bTnn7k/kx/CsNnh/cGVNRkOh+baJvYHovfT8/NZEwFwD3eB6i2a0fdh7YGnCuIHY37psyMPoFO8Mmynb0qE/DPjCV6xgAj1XwVbIFYRi2DFzB95AXpt/MRLJ5dyXy5PsEyeKSYE7JcyeS4CDDSs7X3thebRBkAZbmFq+Zb62zUG7fSRM6NFBBtiZ7RxrTggHDOjNzxS1olvmIagmcPFxfLUuS3g==; 25:a87KvqikY/pJxl2cJ/yt3n4GhrGCQsscltcS2ODO5wcqL9GRII2QWWH7UQcOPdxRKlAN8aUzHlt/7b6wEuGI+QPZgB+yX/pmswkzi0//Iv5W5CHe3n+FiFE1lWzlv8nWbtl2OfjIpkIr716mY5mq6h6HquQjYOG0Jzpaoq9nbY00Urw9U5UCrpRcqz1J21N992Q0BSUvZ3LlDIX7SydVd2l3O2jbKLm+xilXqLzn2bosOIKQcyRg3y4trSSDOm+E6zLHtsZ2ZwbgV9NEquwMO1S5W8ukhs67BOTJXLuGAOkGjLeiqbxUm+WKplSW/Z7p4iUHULztoo6tB9nxIwkavnsT8DJVRZ6yQ3kJCO4TJF/oGwv+o/Wi2FhXwZ2AEomm1amv3Z681gwngM3I66hhW1BOWwI6mKYIkynQxqIrpV5W4Duhfg8P9omCM6CF9JIMUH7vnfNf8jacqp8KhydS1A== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:rlCPI1M+5mhBW3UCglfI709V/8Q4dOjhYSGd1ZipuM4HDHkUDUjyEKb5YYiR6uBKR6mCP8CoQS1dsd/7zv2XQGyeBu9nt9KoDRBIdk3MPke322xqxEdho21Uc9JUjirlVlZsvqHfFeLZ5KKovXcNQ+f8pxndFo6BBT2JCAXD6ILvP4XNEiS5O1QYHs4/6HQKjrXGYkhcoHmodnSy6TiKavrS7VDx+eybWGGBtySwXrk=; 20:e6MWa+XI2+y4E701Gyt3sH0e77j4oGkl89AD6h4YzeaTdUIlhsjzHVrU52EUnhd0mzVtyZeje1XqlckNQ1IV4Trt3qOgSY9w0PjA7JlcQt+a1GkJB9C8+QT4+qpQZSE7Ev4Qx3ooHPESD20iOt6i1fB4G9ojwCiDIIbInZ5s2t9m1aEdJ4tAct9PTRDf6dbBNZ3xV3vES2Fs0835iLGAp0Fq4CECRlx7RmLXQl3MW3sNnHtzu82yVLPtg2vORgYPx5VgVXGVNSnv37It1422IjTu4qs0E+RbTxCwnzNgLd2J2tEntfhcmeVR+fq8q+/63QnmTVv2ddA16/DBrIVu+xJMLqiawk81a2r1zJGvRby0tj4hA9wkYZZNhTPR+FDaX6SbfrY4yv7+ztkf+Zdi8AD0yLKQ4Gfozaz3I6N2efbAe5amC9nNW2CaSV5I59uglJq+2WaA3/LUBTHSWK0V9hRlbu05k/qhHQstg9eph3ZgKoEhTW1Ji8fnpM7ADBa5ipD81JRFJnpS+ID1ffb0Nv5AoI3pvkkMec6fcK9iV9wfMj8G8+LUCXo/pPhs35PNShb4cszheAVXjOmcjZn85l1/ftn1Pi1Gvz/j1fjnTuM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123558025)(20161123564025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:gq7ZFoJHYOZVHslQkiTJS0pTCOX44Ymv2RkQ7cbcM7NEEv+fF/rsW3kI87s7pdkx0Y0p8AC9BliaqPDvbAqi7DRycgERe7cRy9sWeQbkDzBZN2dvsQpLJtYbEy7xj3W+d0L6yd5Tx0koyow/M/llW88rXDcMxwoilxbKJ+RWS2Br+EvBExOgnKnUH5mwmB10pb07Igq8cCNj0ckKzudBRAYW2/sxxwJGDPCujQBl4lTzeyQXKydQ8RtS5QDZ6FsyqIitObOIl8Kq4FSXUCm1fr+g5qqUVV+gZdhjeuzDowB0aQFMmMKd60BqivQY28w3Su2iroT6TAw3F6Wgve3F28AvTE5WTQzLDyAWaPF00wPkZ6BMsIHB69O/+vxOJZeh9mqSJdZ+MPiRRT4/TxvZrQdGY6iePGgo0nw71uA3zq+oiIrrPEOEcef11FU0i4EFGS8g/XHVtFQOqxJOogn3n63FKKBWiKo/tyD16IaSfflF+PIlgZJBZH72g2eybUkao4LgFEhzrPfZtie75vTO7d9PzSRqAZo2tCOxop/1iIhOXUSSJtedcBRsepnAjX/uxfJ51Z+JZkrKf/4eEDn4Zsp5N/bLIDOFxxm/vePerD0= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(3846002)(50986999)(6116002)(36756003)(81166006)(6512007)(97736004)(2361001)(2351001)(6506006)(5660300001)(42186005)(50226002)(8676002)(106356001)(8656002)(2950100002)(2906002)(25786008)(47776003)(6486002)(76176999)(33646002)(7736002)(107886003)(42882006)(66066001)(110136004)(4326008)(38730400002)(6916009)(305945005)(48376002)(92566002)(5009440100003)(5003940100001)(50466002)(189998001)(53936002)(7099028)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =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U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:vPjJE0MKXkXFJz/I8wGgLby5XG0hACnDl2/dmwp0WH5CWiBCxhpxJaSygBV9xSCjXllGzIBjOwytsr2VA6/NY1dxTYXodeHGtoG0va6IxAmYbHIRSS0RM7bjaC9X88ILlJHoGPXJKoQjk4hI2wOMFN8P17T2anPjRwbzEgQ8WUvooBM+uEEpfpuGNcs8SqQA3cYbDC7rYbNv+KLDSMHw0xARebeJdUimzCCRe8BWox9eKsjReEAwQ0i5NVrkw5Xd26E6PefpgImNyUktk729dwzCgXu3PZwsWYxiXcBSupCupJgWapHf3yINkrvuG5dHyGc1PfjNHb9zqKdfIzEVAw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 17:31:19.2373 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 36/39] app/test: octeontx queue and flow based max stage pipeline X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 17:31:24 -0000 Add queue and flow based pipeline test with maximum number of stages available in the device. Signed-off-by: Jerin Jacob --- app/test/test_eventdev_octeontx.c | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/app/test/test_eventdev_octeontx.c b/app/test/test_eventdev_octeontx.c index f477bf2..1afb52e 100644 --- a/app/test/test_eventdev_octeontx.c +++ b/app/test/test_eventdev_octeontx.c @@ -1208,6 +1208,45 @@ test_multi_port_queue_max_stages_random_sched_type(void) return launch_multi_port_max_stages_random_sched_type( worker_queue_based_pipeline_max_stages_rand_sched_type); } + +static int +worker_mixed_pipeline_max_stages_rand_sched_type(void *arg) +{ + struct test_core_param *param = arg; + struct rte_event ev; + uint16_t valid_event; + uint8_t port = param->port; + uint8_t nr_queues = rte_event_queue_count(evdev); + rte_atomic32_t *total_events = param->total_events; + + while (rte_atomic32_read(total_events) > 0) { + valid_event = rte_event_dequeue_burst(evdev, port, &ev, 1, 0); + if (!valid_event) + continue; + + if (ev.queue_id == nr_queues - 1) { /* Last stage */ + rte_pktmbuf_free(ev.mbuf); + rte_atomic32_sub(total_events, 1); + } else { + ev.event_type = RTE_EVENT_TYPE_CPU; + ev.queue_id++; + ev.sub_event_type = rte_rand() % 256; + ev.sched_type = + rte_rand() % (RTE_SCHED_TYPE_PARALLEL + 1); + ev.op = RTE_EVENT_OP_FORWARD; + rte_event_enqueue_burst(evdev, port, &ev, 1); + } + } + return 0; +} + +/* Queue and flow based pipeline with maximum stages with random sched type */ +static int +test_multi_port_mixed_max_stages_random_sched_type(void) +{ + return launch_multi_port_max_stages_random_sched_type( + worker_mixed_pipeline_max_stages_rand_sched_type); +} static struct unit_test_suite eventdev_octeontx_testsuite = { .suite_name = "eventdev octeontx unit test suite", .setup = testsuite_setup, @@ -1269,6 +1308,8 @@ static struct unit_test_suite eventdev_octeontx_testsuite = { test_multi_port_flow_max_stages_random_sched_type), TEST_CASE_ST(eventdev_setup, eventdev_teardown, test_multi_port_queue_max_stages_random_sched_type), + TEST_CASE_ST(eventdev_setup, eventdev_teardown, + test_multi_port_mixed_max_stages_random_sched_type), TEST_CASES_END() /**< NULL terminate unit test array */ } }; -- 2.5.5