From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0051.outbound.protection.outlook.com [104.47.40.51]) by dpdk.org (Postfix) with ESMTP id 907492C2A for ; Fri, 31 Mar 2017 21:37:48 +0200 (CEST) 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=blBLJOHSImF12r9eLJ5SLvCvyr+a0a/1Z3n8xZQTntI=; b=igCQWeCVj4syV/T0lA+vDgy/UDHrmF78mqUCmyWWPEMYHsQlyCpjnIKgkk4WWKe3VW/NuuRAb9D3ujH5kVbP36IY98xfnwZ6uoOMV2Qd8Mp+Xrn9cCmtr++4K28+W61JPUGd5LebKTQQuXokSNED4jTBSnLvcoMML8NFHV8hDmE= 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 (14.140.2.178) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 31 Mar 2017 19:37:43 +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: Sat, 1 Apr 2017 01:04:59 +0530 Message-Id: <1490988905-12584-33-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1490988905-12584-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> <1490988905-12584-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: MAXPR01CA0058.INDPRD01.PROD.OUTLOOK.COM (10.164.146.158) To BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) X-MS-Office365-Filtering-Correlation-Id: 9c7c1365-0d85-4177-a633-08d4786d6899 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:mwIQ2GxfDtS8o7gJ9am3uaRYF66Sf8kE94CZW9N/0cL0WLELp0Ku3+tpHOAghEpFxPWFGrO8Tv7xCxMXHU3HVObEy47EtimTkBjBWOaOs8MwJfiCydz/1KUGBCVkQQNb/uz7KRL2aJ77GjnoFBr2E2jOPBt22El9V7eG1qin3bfixhpcD8rQLszFaThvcWnF2LtAErLIcQjsPfn21ex6BZXdJPb74uN0XSMO5H0GBFvLjeO5yDW1RF+EfrVU6n+lCHBHDX8CxbxQgLTNjqe8wHMkw1w+9HxHDqS1d/EwApHFv6BooatB3ZQqb0xGIRU2r/2V9U7HS2GXw6xW3lhGWg==; 25:wubO49yhkGvGuKw0kGbiNOdgJc+rL07NhMGVM4GyPw5y1eJ5iKrXIyRyFwDAIlgBu5bar5e1ioxSqlDWb4RBB4sfaZnCvkGBI+DSiwBis/EUOhUQShqJ0Pdqsm4VleqSoqXwnwsrx6mEV2vrjvA2T9Y/o0cjoP7kOow4y6QcZSkwMgukov3g999LwpWdtK+FIy6lu3l90O7Ds97GB8T3aHJYUwx52zOkPr5UdV4cIDLG+Zg4UN4X/7ppVPoXlsPW511a191miLA5HrvURw+TEznw2QPNvpU0buBAcwPzo98Q1TFEaFkCA1BeDA/RPa44jkm/mCdgXFivMv5YBzz4baynvPxDB0rgj2P1zieUPT2y7rl45H6mZ9tooYl/5O3LxQ7vLu5Mbz019IhzOC3wGKQXjLt6uFVGiq09Rh7Vg6GBK5iMj4TlvrxvWCvAXhkMhH1v1P+J+9+NzFs0OtNeyg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 31:ZEW3baubskr6MC5yNfqAxv2pEEUm7FXy306lUoZGitF6zN0P/wALP0r6eap2CmXHhge7dz1oCNBLHh2mHk+yE6097ZwXKmyZD6cpnz4hKtZzpUKylS1ALZAoEpo4LJARTGtxldRF5T/SnQ+mfdijqt48JXO/uZks62jI9GXxEt4UaYYTaGEE1FtTja7zeGtKo2jYMwinNDJW1Sg1c3QRFwQ9cw6ehoj4euUlP6BSvQk=; 20:8U53DaNSFt5bX7ItKGSdTgnF2S408IxkVuIQn0FUqivZebx8t20XVeVC3XP9GT/rIph/IlabU//Rwrxuh/0n9dGAsmVWIezVxtF0u42Rr93nznzwpWJ5OLn438JR9rcEsro30bIYG46Ta5vvoBzXX63oBlVYKupjXkcBqW1bo2WauC5RZ+pxHoC1MotF5vifdkkqNhqByvmMfWZnabw7BDplnQrFeVeh8Sp1bOzJoexKWXB2gjYtj8wUevEch6a5qws1WeskXUjQPYtXLIpC7K4+8JY7YyoGsd+GjKkfaxJ/OTnNi5s56KAoUGQ29ykRPJijajBN8hO+XYSD500xs4ViuNIkTzVAtmxpzAYV8OHstS1/hLwSA85pDP20qtgtjmiALMq3X6amEY83RteJwUI07x3ohYua1u7GJ8puDmTJdKRn28FPFMcCWjlXswSYMUh8aEPekZmj8vmOHtGdFiLbsGOYOAUsZvFzXsF34Elc+p6S8tC4BkcNge7iW2G3DXz4j7zeimE9XODltF75jqLuwvFxXPyo4KZITiS+7IEnTXZQs2yBkmZpw6iwAmiK0dk2NUFFRc0IB/TrSeD6bMSwB3CdSSM0kDhaaZEowBY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(6041248)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123564025)(6072148); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:j4vMVwaLrFk6HuO1pL7dfPw7PIXVvnhzBRZ1d3ny9bocn0pMenwYklRS9DtCx/1pV5oDwarsKRTuxc0emKW98GTDYO0/g1AJNBRa67JNNDZqQUVy9yl5G4iWpQ+1RcQut7DYCODqizg0rjjYMW1lL42Od6A3NtgC1ntG66XZKDmeMVYCSKsvCZf2HrHEOXtvuFVclNCIK0Sz/Bfk8vdHVEyR2HnGxrTG2zCzePEFdnxhRO4660vGLuN/qTTkm0hCeIZbUVeoTBG7R1YUTZuVo6+gxqiSQP67/V859FVp3O2lASUrEccZKYjx8/4OFPm9gyTkoOFIVypCN5/dx8Y0QNPGTX8+d3vSVTNo9E0n59QZPoYA0xcimkIarp0meZND8ZyA6YWpxT0+cKx4To80FzJtcQgRyaoBoTQ0SUNv7fuBxdOQcRnKzRsmfKZh7HwpkORStYBb4CNcZ51cibW16MjOfeNFt8kcXW4MtUs6ZwFrcW1KkegHr+vmrzaNuO/SrtEjMIIS1M8g9j0/oeI5t81rVT6KmhttuEpw0W/pTxyAj9ZKwWD/P9ucDuQC5+DEPWdm2MD7DIMCZdT82Kh4APYUOXYq+AayjWXnWJzue/I96tYxI6S5lsv6Jb8P4D5IoTZZwn24jNhRGtnFrCsCx9tZvSgg2c1gLtarG+DQ/PliChkqOBgJacwweYkyATh6CGv8Zldn/fe8Y1YwWiQOTCvAzwqNT/Qy7vbkWw5MbfR3ZGltACU1wbcQMbpHLa7j X-Forefront-PRVS: 02638D901B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39450400003)(39410400002)(39400400002)(39850400002)(39840400002)(38730400002)(8676002)(107886003)(110136004)(50466002)(189998001)(305945005)(6506006)(36756003)(50226002)(25786009)(48376002)(6666003)(575784001)(8656002)(6486002)(7736002)(2950100002)(5660300001)(53936002)(81156014)(81166006)(3846002)(42882006)(6916009)(6116002)(6512007)(42186005)(33646002)(2361001)(2351001)(76176999)(50986999)(5003940100001)(47776003)(2906002)(5009440100003)(4326008)(66066001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; H:localhost.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1723; 23:vfWiDdLe+3Ezd9Gy+XdRoizcWFTO4DPnOwvUSF4?= =?us-ascii?Q?rvzkDzsNDQzOQd86fmop8OIMshvVDFTZMOFUa3HelkU0MbOCzKzqtDR2vOsz?= =?us-ascii?Q?3aAfUNsqRVIMxhhapyhOklb96qcLYS+f32kuyFu6OGO6goJ1vTjqqZ9af3Tw?= =?us-ascii?Q?nLfwS0oMl6xN0/N+46KppGgugsdc2KqUDHRsPhMSyh0s77xWT0+UMm+svtBV?= =?us-ascii?Q?u+o/Ts6OxdV83UnUU+o92AMp/ngGyOX6N0pIleyaidxdjVVtZOhxaSs7X+P2?= =?us-ascii?Q?3sdfcxx0fnjX5MxkFqA/AUkY6wfiygO0L+clVwoqIs4P/btNWLUC+xeAPQET?= =?us-ascii?Q?AI4agT1aUQsHL1ungfn1Si99h0MfFK9z/+z1N3k/FVa4SpcAPodvlCi1ut3i?= =?us-ascii?Q?TVJ6t9Reu4RPybZ56rywHaX22FutaMSZR5zSmU0g5aYV78FWQnQhu650COAl?= =?us-ascii?Q?47MTrJjjQkQsiKYS+BXhnjvR3p6DzdB80VhAxaOiwIzeHyKYEhkJEBKYZOfi?= =?us-ascii?Q?iQ9qD/wRD9oEKsqzonN/c/ydTeIL0pkZRPKhVJv/NUNBWAkfQCibZyh0UnsZ?= =?us-ascii?Q?n7IuTtmV+L+vHjPRjIHGrI8gz/ldnUsv0AY6nKeZqg8mLyH/S0wsdI3zvSzB?= =?us-ascii?Q?qFPxSIs2VhhuqcYTMwKlHmY/4M0qEazqfyOtaB2bx0oh/sKXz0eveY7371FC?= =?us-ascii?Q?iwMINEDO19p/sgN8uPQAra8LyqjS0seivB3hstRktN03DyfAjKeOq+BtOGR9?= =?us-ascii?Q?Grz0UKqj82T+d970azN0ehECWFbnhtb8PI597LBBdt1VKdiQKUmNBDlgSiND?= =?us-ascii?Q?Ze2XerjnegZdP+9JkJfwoPMq/cizLh351BaFb9/ytb22ynljXNSTNRgNynLv?= =?us-ascii?Q?FHNmLPwIfveHm6yq3ApDI7HkD15zY1xJ9PQOy6IhQQGc7g3beuCnSqjriAXT?= =?us-ascii?Q?D8ohWVaQCY8FHbilDqpuj5owM2tsMepSvcIZ4viY+QNVKetF4wALlLT1a5Pd?= =?us-ascii?Q?Ym//Iw4FGBzBppNU3vqY0VVKeM1e1XH/l4ZVfo2B57ZVeSRRLOBYnZCsMFZl?= =?us-ascii?Q?eDkXCPerVq8ev+mAr8jd3deLDA8q1POnW0gZlIhx5A30UMtcLsrddHw2pk2K?= =?us-ascii?Q?aW7SU/bNKYDq8JS1eH2zIMb7ETp6joVM7xAHoyZx+qs5NqYfvaBMzH3LHxA6?= =?us-ascii?Q?m+VeC84H/diqtfGm3NqIMrON0UODmH2Z6bBcc?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 6:C41ZsRG8VAgM7wrCJgWDV/L5dF/tx7+JwwZpaNbBvHPuGR6d97QFtWqODahx+gvOof9keeQxPB4ZhHNu/kmBoRSvPMsYCYhEriUAanXWYiCjeP8JBxQzwMnrRCUoVkiNubp3zJWFzpmfRjB/pD6a1LzfOWWw+Ie+iHrROpJKQxNNHhsNiKvuKy888Ch5XZHAxa4YWjTn6GBEpHKcbKpvfCAUIleRTzF+zMFWr3u1DnU+7MryHv4pbhwPoGLqRr17m+kKO49ENrXJY/4hTQ3bbpfhpIayO5g4pwgGL2qeivBRSHkBgALbh5qFo5kbyisXI78XSoTj6kE6I2wccMwIPnqZBTFcp4gffYoViISpkxlcTiqxCPFFo+3UdTXuHm7hYDuLPDkOR+DSgbOVmrWHIg==; 5:2os8OWgfVsOzZMYYbO9LN1XzPu3pVKgNZhsCJCCwhPcklx3Q4G3tagRfP50etwbbIGV7ljdC0Z0uYJ8G+JQpw5FKdqQ/KzzUpPNNt3KRHKOoevu1ZHcpw+inx+ceU6IiUXA9LHSWm8bm7F9TBz3IcA2MCnS5GsAaqG51gYmTw7g=; 24:1WE8a/OIavYrNm42JC2nQ9SOuuxaFnCM+gtUR48Zld0m5u2az2mbK9kJQ8hggy5YQNkyzp1C+gR9vkMUKJyvRfwkPaMUP2VbX9P3nsglELc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 7:zKKRJ/9oKdzvkMY8NJ0a0vzhdXiacdndUD0U8CneqhYoBVxmYl2zT4xlFh+UVqRXhepkqaLYhz44+WyMvGjIkzoHu+2i86TLnzdUGPVS0bM15MUihAvKm0NSyDlJgXaGi5cO+sFf5WMDtSwgXNSDNnAjeZ4qFdRExNH5hDPspopEvoYx5RFEbbjN70H6/kYz60ha+2i38yHR5J5zpq9Le+8VfN6MehgQ5SmGPVXwSwtgiplrdglTkDowhYuXmIw+cN7lnctECpE/pXafcrVU6904RB8dw16lCBfkNW4NX8aPC5f3ctdagVq4Iq9GnLzZwhc2HkkW0/TVgChYNTkM8A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 19:37:43.4020 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: [dpdk-dev] [PATCH v2 32/38] test/test: octeontx queue based maximum 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, 31 Mar 2017 19:37:49 -0000 Add queue based pipeline test with maximum number of stages available in the device. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c index d7eb6de..a0d58e1 100644 --- a/test/test/test_eventdev_octeontx.c +++ b/test/test/test_eventdev_octeontx.c @@ -1171,6 +1171,43 @@ test_multi_port_flow_max_stages_random_sched_type(void) worker_flow_based_pipeline_max_stages_rand_sched_type); } +static int +worker_queue_based_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.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 based pipeline with maximum stages with random sched type */ +static int +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 struct unit_test_suite eventdev_octeontx_testsuite = { .suite_name = "eventdev octeontx unit test suite", .setup = testsuite_setup, @@ -1230,6 +1267,8 @@ static struct unit_test_suite eventdev_octeontx_testsuite = { test_multi_port_queue_parallel_to_parallel), TEST_CASE_ST(eventdev_setup, eventdev_teardown, 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_CASES_END() /**< NULL terminate unit test array */ } }; -- 2.5.5