From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0062.outbound.protection.outlook.com [104.47.40.62]) by dpdk.org (Postfix) with ESMTP id 1790F2BDF for ; Fri, 31 Mar 2017 21:37:11 +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=0tJ81TASpvSYRd4kVdy1HXYgrL0R+9wFixugajRAEhM=; b=UTVqIPXB1B8i8CrR+9kdWbN+c4D8dbxXPVG9X+fYai7QQiGJnaMvahAg6zoKL5M4PB/QXbJxJp4+xnEOcA9UtTqKeAziVKy72IoAmbCgTIF4chFLdxuLF3G2qeErLCkoXmSWxiiTiJIcif0G1qPB6e6CAhvBXBWZQ5EOe9qd9Mk= 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:06 +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:50 +0530 Message-Id: <1490988905-12584-24-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: ec562fe1-af26-4434-0379-08d4786d527d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:2MNDJNCo2kUGTt0S9kWjXeg0fLfF7IP1SbnagNiXN7BvpqBkGxI+/8l96WSPgOblxOcuQ/UpGaMhegsoMDLrweCy8P6GnofrJElCFo3zjonoFYqCMH3toFWw441+axPoKZz+LeKVNsyF60xHpk/xbX08XynoS2Lsnchw3osSNFOiWd57HjjFhdTXj8IzCbmsZC04PnPos8zJH3YbXM52Xvbp4CCghXPtVlYtLi2fM9hH/a4ZLMd3HqycXGJBecjAx+jefHG2xz5mb5a7f8FY0qE6XWntULTlIyh95/rwGt4geELuaXz3laCFfSk3aRqIqduaJfbtR5vgD/PbODrKtg==; 25:5bmX195dwE6zA9bvyu20b53mWaiWSdpe81U/+1ibLFJRADpeNCbxh6NRXWtgOgCNjQMadJIXwIUtQ7sQOxsKxksXnQJ9YUz4h+0iCSMju0OaIsIBEgzMfoFo9AO5LvftZFFYnmuhMZtGvrHbWiTeefmNrccTCtGt3/p2wPO6h4N0VGA74FOqMt0X+Im9dAoGIJOzK6MUnB3WYd3/pFNRpHUxF0prPZnc99ARPhtbS4wvFMQ+ulBIyUW2ATCsyGAoiqNUNTcd5SjPMN+ZlqOe7IQUFceczGgCSjmf9mb7vsRIIF08M9I9yRd1Z93giN3+RKwZt4NYCo3zLk1MdpWpbzbQP+aBE2LMU0bEdH4CSaJv7QRIoq6tETdKPrLac7EjfzUikqkZmKeSAKL+lNSUE6sZ1oXFqGtWfp4jGeMEs6oJa7vdPPGhhB2q0TxxsSZANHHZD70+LW+JM5vH47YnPA== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 31:Xm+oN1+ml9A8IucS/mT5Dd1lXmqYj9U23l8ZT4M5fVn7r+21PiLNKPcQaOdh3W/u6swUICRCF9PiMfciB1S8ABiVAd0gqKDbPKDtC62Yeb4ujdoYiCg6+VFrb+ch81oaOFAYSz7JP4K9Lpb4Op7/RMObCagG7XimsrB4raA02W/mjwAGgm3GEWq5pmW1crpntNkiPnS1IRiM0tkz9sUz3o2jJveZQms3QE6bugXHMSI84tpYQMKlc01KcEEaDzYt; 20:nTsTEVaSa/DIeoJeQupUZSPfQRkBERSRw/wc5PLeHD+6SQLqz/gjgzMP7U/7VVtm3caKWd2fry4dlQlpKw/DZwohylbem2PhtADqvRmQpbzEM4ouSjGk1rPQ1Vaers7u2NIF+7AunDSY9XvJKyYZVE3LPbHLkQyCN2SkxQIt2c/TCHOAorRqUzGMOyAGuepFJwI8WPELdQFL6uA3UcCJkx+LXEzkLwdPVZzP9sFkfgNKJI6bCophI7TT27t0p6sAvLMTtxAhRE0nwW7TQkYiOo3L6MYkO0+A9SjfKz37EDi7giXv4u+7AOJAanLpEvMdlgvT15A5gDjJkTObkKKFy9bQsJSve0DIq7cWUiS9B3uoUmTPrvZNsF6ZDSQ7LZVa+3Ps7B5/tV+wFxKDZuscjb0VQO0mcg/ydw6uEbDe8mL1XNfD1y5Y/AajsfVVA9pdYtkT3UcWoHDSt+5MOPd91EGnZ+ACrWuhUt0SxQYmCYSeSXhaoOyLFrAVaZiXuKnVcU/aqqJ9G7WX7eHCNBqB+kPZ/fzqML4HiC0p1PwjKp5Z9+vQAxxBmL8uzZBxd9jTZ1x2F+ntmRtZXrshc5KMVsUEcb+NqphElm/gBCt65dY= 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:bQFg+RFLlUIixVy5jZUFoRBFvlFaenIptJL7yqGLVnw0HuOexQTA+L1yzPgMlpgjAFk0gc9pL0Fav7lNjAJ/dgVgR5zP0LSRk+sIQReMorCsWltBEFZt9z2AEpA/Vs39ACOPZzD3cbzenJAKQosivpx03HyfsswTSIM4GOoOw3G06QRF6Tv2Zcr7VEvfzHnSO1s65oIDevvzBu6VJTq0AVN59SCkMRkfz1Ni5NaafTTG0V/YNsqk8Gw4zCcck+nMl/uKeO8D7N44LswganRylKMHv1kAWDkWeCvA6SwUYGCQY8Ay1FDe/iOYnbz7oyUMdcMdJoqzaXW7RxzH7QbEEhd/2zprvnxxrjLNHVnWHVVTYtrETRSpcjmncsoRG1MyUi5+Bh4GrmgQvgWvUYmaozCT+a0r4/o/qjd/FeDAyUdoCN/BexPlu4Jyrpkmcio0ULggIH2ZhWXu2mee4vJHp6IUMteRpxaDYuyEihrFzVeFEK+BZeqUHf6xhJXNvnwE/GHAjOF5j/dEhJljyZSASWw7jbTSWrYbWiDaktnXXGiIUC5yuZE9ROroCyVfSuXHi9c/U2pTQjA+OWphoN8PtKYcUahJpSKNM1x5wxdhdnh0oYISV2VOCHNju/Hyfwa+NeslbzlN+Hr4MdMAsmD1VUdGdgBx33J8T2DR4AQnl/int2vZqPsPUH1fpOkFBE5ENlpfbYbjsY8Kck74Ljx3Pyp3ftJp59qd2H9E6lLVc5WrePTm8fv6LrGhmDWHpW8J 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)(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:QB0SuQk7NITcqe2fkPonhfLS6PYwT68lsQfcamf?= =?us-ascii?Q?yaJuZyv926hB8xdKiRDiXPlCuuNJrye8uN8csyT+hAJtYVSjSdPxr6+JIur+?= =?us-ascii?Q?pi8JJJVlUV/1EBGjV3ygruWlT7+AMA770Umji4ppj39eQR9/M8XPE0HufAxU?= =?us-ascii?Q?2M4WP5toSoM1KsqdrP+dShqDsAIr1qXbCxx8umd+wlWUzDZZIwQZHRmB0buL?= =?us-ascii?Q?1Bibk1zdLouwjUYcSVnFiMMvfIaZaTyl8aaDxiWYkPvbxOoy+IZDqAhqXmPz?= =?us-ascii?Q?pV91K3fPLT/o1WJW3KHEum+XxjfKZ1NT3Yzxx3xbc/mv6guzeIy5Nm32WvEu?= =?us-ascii?Q?II30aOcxCSiahwAD+M/H/0ZmuVZuLeFzxEj0EXCDFmd0NJMfxfBU49mdeuVG?= =?us-ascii?Q?p9BpJZzoB1B9P6TjptN3/NWviOe9feSTxdWCJ3w576872nwgBvqfy+Lxei86?= =?us-ascii?Q?mLt34clRLk5kXAVX2I/TJbasv6OiD3o+IEIdAkxvSBFvid1Y+aCZPL6w9/wf?= =?us-ascii?Q?Ld9MwDPgQYdjxhXk3d669hzccJXgkpkx2UZCP+Ti+Ziy6yWHo9D6NG4RXRjj?= =?us-ascii?Q?NhZTrPARQqY73ON/7QOCTFTtcRg+pZ4jjfm+qjl8pvxI9NH/scrD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+N7ZG9IJb7mwOy0Fq41vKPufTuZD3XD91vxUXqqwoSQh5fsqXX5EjhFhgIAwqnXDeG5ERtuMmh3tKMbSNQ==; 5:X3e9KVKiX7FjNhGTnXBKgulrxwvw4AQNLCztHjw4xEq/6todRGBV0UIW0O9Hv9qVRYyPirn0D/X3pcM3rQFc/+cxohDQ4GZy5ynjuVaCnLndO+oe9tLzNABEhOeODJY6DSp58TTQqbTrJ0g6ehTb7ErNjNpt1604WkK1v/KAUTk=; 24:KiQOWR7+mG/9ga/VzSXYRtjgk3Xu3IbIJt/ssyXXm4XJSlHBH2hP1vX2YGTTlu+3YzvIsIvWUHUQCNlE9/YrhGhBek57aDK3G2hswG2Ij+I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 7:KHrmHkj6ZmvLT/7mF0X/fpWGBxRZk9m4P9Cc2ztAmNYHwO+SW5042UgIRJUsUvRjBikDGjyGD5iF0ETrJIdrVfBdPXlU9odmFzofs+E8iFSN1Eogy/fPjKT9kQ/tviSeCDNAJXdmylWvkGCc+Ae+TsXMeRF7WA/D00Ar2aS2dP5I+LYjV5kJMYOObP/RMMFGudlPgu9wHkgHdl082dbjuYPeU0H+jZQa1sK0jhqyGuRkAUeNMQ+wVg5EuaawQ4vBXc0f/R5DUnsGRdEO8P3qK1AmfpfoMY1L8iYiIBXXbOMBquOBptfiW3MJTQOQgIFNjuK9YGZ41KawDVPqBM4BRw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 19:37:06.3335 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: [dpdk-dev] [PATCH v2 23/38] test/test: octeontx multi queue enqueue and dequeue test 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:11 -0000 Added unit test case to verify enqueue and dequeue operations with multiple queues and a single port. Signed-off-by: Jerin Jacob Acked-by: Harry van Haaren --- test/test/test_eventdev_octeontx.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/test/test_eventdev_octeontx.c b/test/test/test_eventdev_octeontx.c index c1cad65..62dc28a 100644 --- a/test/test/test_eventdev_octeontx.c +++ b/test/test/test_eventdev_octeontx.c @@ -452,6 +452,23 @@ test_simple_enqdeq_parallel(void) return test_simple_enqdeq(RTE_SCHED_TYPE_PARALLEL); } +/* + * Generate a prescribed number of events and spread them across available + * queues. On dequeue, using single event port(port 0) verify the enqueued + * event attributes + */ +static int +test_multi_queue_enq_single_port_deq(void) +{ + int ret; + + ret = generate_random_events(MAX_EVENTS); + if (ret) + return TEST_FAILED; + + return consume_events(0 /* port */, MAX_EVENTS, NULL); +} + static struct unit_test_suite eventdev_octeontx_testsuite = { .suite_name = "eventdev octeontx unit test suite", .setup = testsuite_setup, @@ -463,6 +480,8 @@ static struct unit_test_suite eventdev_octeontx_testsuite = { test_simple_enqdeq_atomic), TEST_CASE_ST(eventdev_setup, eventdev_teardown, test_simple_enqdeq_parallel), + TEST_CASE_ST(eventdev_setup, eventdev_teardown, + test_multi_queue_enq_single_port_deq), TEST_CASES_END() /**< NULL terminate unit test array */ } }; -- 2.5.5