From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0066.outbound.protection.outlook.com [104.47.38.66]) by dpdk.org (Postfix) with ESMTP id 20483374C for ; Fri, 31 Mar 2017 21:37:52 +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=ciuFEs9cR+dmMMGaBqRmxI8YL9dDQkmwjIlDzGSI/aQ=; b=nWZKoV/pojuMTETPVXxHbn4/mOdV5QDCvd4LwM8qcOpNjhweLyXasicQMg7P2EuyL/1OuEBawqo18LS/bgB9tEFP654lWENovNRLRDB86nrDyFSsN5TgCQoatuLuwoxHXCA21emI5KTXER/fA1qkG6SfWiXdBbh5wdpasFikAk0= 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:47 +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:05:00 +0530 Message-Id: <1490988905-12584-34-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: 08d4e66b-da77-4a1c-7be6-08d4786d6afb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:mr0kKfVPd9jSJe5wHMgqAc3GitoPGmMCYPV2Fj2mtn3+0sPW1czu+AyRNagyf1DlKbp2pvH/XBiv/LdKeCuDmF87Rp44L0cVBJ4FqcEiGVj1M5x8HOxqAuA/7cIRC5fiDJMpa4Pi/nsJg/yN+U7wevyyQTaMwVXj/dNAEJwyHdL2XvQIthZoe/VEvE4V7UbZh/esE8gQY3+2sZ8ABp/DxRzvYFZHbcy+kgmvHwkcWwBxOFFXgK28h4sRaOFoE+Eaq4hOYcfqBkX2WcK3uNd3ksPuFWNiHNLJub3PlCVZ7ieqO2yCKnfS8HpG2L9jLs4Na089t0B1OhbdDC8J0WkqwA==; 25:bxPb56iaSqzsazc/TE7E0h63+z5K3ALhR6duIT23XXkiGieVcq9NeyxOkQcpc82myUz1Tp4AHzmQ6YO3w/OiwS1r/db51Xw335dLm8Mh/+OGxXN6d+c90z4EcoAcSpdTHCYNYCZiQZXGKtxgYPMr5qrOdaNIX0/HKoic1R4qeNS+NES7isJ1RMH7c+5g34CVS1emqnlNbvbvCWq2a16YY4omspygtyCbES3xYteHv1pQYyqnHihH86fK9Dk1Zs3U0Wm14N1XDoitm+Dv3ZGMTRRKE1IE4hqQG+ZsV1nENh+PgWrlEloU9JG1Om6DLwLiPQRF5d8PjBCPNL8b+u6cD5mMK2GBn3O2Q2gZ9NIghUnVoANmgGZszCxCHSmA3U8cVxxo6zjKsIqowjgk53culqvLbecBRYzWkDUeVicN59mPpCAFMTuK57OoTmwZ30+wVWo/Cdw1jZAMCqcRv0Xhqg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 31:i/161+DaD/C6RHlQaPCmql+v2RDuSdcLftrAizSChMLDC+C2ANC2QGdaRLRDvuwJjWrJDmb1Sii2Xaafg+E9Yu6brErYk/hG0vAzz3EKot6VuZNHN+7ovP9L+6BQCb2rxV9JI0JtcNd5Un/p1uUEDR6xGg/4dKitArgAtDiWndEbyo0FqHZ5qwlY/F4pAg3HjNljajNiF1dAr/d/R6GvHvcl8TTq0kxWOBuLYuvCyDcvmtqQXLD23bp/wp3aO5Xa; 20:Tm2gQHaqII3MymqNvuLzvGPWFYs5kGZ9s9aNnraBgtNBmErqIO60jWfhC03HlJSVVu7OBi3yQVrKlg2cpT1rx0/Bew2Vw6fdDc3DWx6oQcMxjqyF+Kz66TT6T5MLXPmUKOp8cjxz+rwkItiDQ2mf2J7YU08jRmGSAGK1gqwqhHU2na0e414HBpmgdit7Lc+ueaJBh+qeiyPIoXUDNOa+V+xpeU3WbV0N0ci6yjHQ/gGlA2t4uSdXfmQQvN0wEm5p1azK4sFnPm2Nsj6aJB6IDPhSiLz6vAYFTsQw7SyB1Rz23JST4m1ZO02RyX8ksab72JjcYHW3h+Gq0+MZhN7vB+6/gIiDbfkjpcqHJvlhWy+T/7fcNVYMKjfByxsZGlne2VAcvwKCEHrMFho3qKqghyHrFjA2AdMQ406wisj3XuVVlbIFh0q/47Df9sitCK11U5Zv07PE3084WytMTkj9Wt9m562rBhZaXLE4RuRwBfbavz1SfJTy0iCsQs/S9y/81p4K3/YhTYQxUUMnXJveilCVZ/MVNTH0EyvSK7RqubEhRl2ejllOxjndnSW21Jw+R70PdIocDH2hSZquOniwYwf0xgt2g+65KWoyQKflmNs= 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:+fU+MSmG+S6jp/0mWekXJh6EoPIdbnr0s0Dwo9mp9+2KSwYWfvw4GuMuocsi5655UUB6BEmQg5EbpCQpYqK58WGjlBXYsFhqtKX/PGQC1hHJ+sNMhmnYXE7fAZ3KMqLnqQcTDKl1Q0jYivPygx0x+dg7eEp+WyoqwEzqVmRrrx4mllWfNoqVLe/HuXatGLTMul8ngsrtwIm88dVPNIPcIBWbOByoXTcEFLoUSU3DJF0d3B20er/RVDqvVfCUHer6NZX9apRcy+BO8WzFP+RXMHiDLOyZ0+GVQf9YVK6nGKetrU6OPOz2hSf1nEYL0GflUB4+1lNrJjz61UT3Kq82Ep1wVkh7xOaf7J9OZiSi9ajP9swf9sZobRV2cbLGpQqKuaesMz0qStjPy0YrcI3gosZm/yfuxPYNGKcFyjrexpc11XgHVcJ3K/KXYPzqzWs1+RhXqhUw+xTImoPHR3isR5T/87jOEk3SdzcMVDjb2t7yt/j2cYCLH8vt9w6p2weK85Ko8KVT0wpJNPZCUAnOX+3HnbWvkB2L4xTCYZyuPhuUKZ8lYGIXdmSJPwa1MMQOvrpYuqZ06/R+rB0k8bx5UEbO51eiBH6Zcg2xzpJIYpITTm1WgJ854G/rrWJRM0ef5LIcMWDCubv+poF5Org1oK1n5HY2D7j0FbiJv8Wp8mDrW6KVAnqdUooXhIoqoHMTu7zH4gkxJgIEZMda8j3SJzPCL673QTssI0EN3YVOj6maF3lVYRvXDDC8FpAHDw3D 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:AD3x1xggTbmQsm8wU+8zsm4dulBFkDep1kuIi3o?= =?us-ascii?Q?p9aVJbwRGkW0x0UNA/Pnm07SQz6q0qUBROocNOae1Xs22XUjWpipp2/R+Txe?= =?us-ascii?Q?MyClqCZ9LmNU17VNwiZd3BXTE2esU8tbOQ0HIPjK2IEsnj/zp01vhO3JnrJ6?= =?us-ascii?Q?t4xOyrfMEZR/qfUfk9DJoADkXSC5X2RPbnkDenz+mveQTv0VUyGk2Oaup8dT?= =?us-ascii?Q?jl3FgOv9g5+GK3Qfg6jp0LNwO2/LOYYUTh+rnHfk2Qcf6EfrZ+0jHZc30FHT?= =?us-ascii?Q?1+1U2NLyETaUNu/g3JD/9kR3dLALT7Qzufuvp7EhwIopwCqQWqIhB8ilwXcH?= =?us-ascii?Q?GkeUMTAouAObHyozrj3qJRHKY3xqWgBeFH/qznY2GhywGuUdRLAb5pRFQQj/?= =?us-ascii?Q?C9PFnkK9oLKbSCJ6qXgC0vjQE5qIXR2p82HmlJvlkvzvfAIXfEY5K2qNon2P?= =?us-ascii?Q?vDE8Nnd+yfnNKLXuIHkx8SYzrgLKk0DyTxnLAg7Ws5zHVmGqA43WqGMLqu+L?= =?us-ascii?Q?7k2nb8fD7jrwikbEJfYpRiuaHxpJKB7bTuG2BuTTTkAIvGlJ0y6MBVN6VJ2z?= =?us-ascii?Q?Tifa+js/hog2C7frxQsjsDmI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oUDlzHoQ81JD3XYjQ0UDTxJrdgKDNx30Y1raJfLBzuWYiedSc836+Z5ufEQj/phDSV+AfwYW+6UubUajNLALA9hBQBFpJk8mr+3MMdfZzAQVPNn68YxEcSrNaTyZ9Zu20NWQ==; 5:2D9YZxOKmCEF8WLPaY2Ot3dD+P0fsMorFeplLSZKb4lFtAsVL00z3GkXQqs5B1cc1m7xW7h8SBknCFGCvvF54lKSZab6e8LigqUOuhnjyvp+QJ+xH2NqgI2LWATzROkQiM8Rm7wmvGQ7spDriPdI2DLoARNdO5lllDTuCezTTjE=; 24:Mq28g1VOMuPP9vsc/KXwVRwsFm9XFLi4jMtSR+t/16CZ7OWpmlU7PxY1NN+v1f9mx9F73qJyJxiI5FOzO3pSrgHPHrmPhEjwjBHXoHozdc0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 7:hBBDt9bU23DUUhiBYV5Ho4N4b4YE1/63J/F/Xph+1US5dI2Rkqy5++nqqRNsoglIqnN1+H4/Ki4vRyfOgoq31CuzF94GETWhtwljveWsIlwVUlB9rTaboewpZiu/yJxEEz3gOVrXH1K4L4gspj3z34Ehsy5IMXyUMwuyYd6Mxc4YNuLqd9nnBxn1TTyGdidkJx9p5GK2iIoIIKAXq5d4kURA6K1895gooJtJlSBj1DFT5+BmTUAQTqJpgEEJi+XfHhZDEiRqBMzZhuMVIsO+V5UYWbDcA+gxw1frDJR/fI3gbE0ywR9SxNUQ/LDfkBFLoG4Yt1WmQfs4tt7qphYVPA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 19:37:47.3946 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: [dpdk-dev] [PATCH v2 33/38] test/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, 31 Mar 2017 19:37:53 -0000 Add queue and flow 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 | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c index a0d58e1..3022fdc 100644 --- a/test/test/test_eventdev_octeontx.c +++ b/test/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