From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0064.outbound.protection.outlook.com [104.47.32.64]) by dpdk.org (Postfix) with ESMTP id 0E4F3F95C for ; Fri, 3 Mar 2017 18:30:42 +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=WHlP8Z0lUkTBDKRciB5yc+FW2FzwvI5mDOrtdufUhxg=; b=RYCSDz1cEZZ3q3jFGINnH/Ts5wqP+KAGN0siMrexN0MnT9TnQjyuywV127yPgEIgk7m+sztW5SSPOoTcLQ1XWyB8osbb/rOo0CjrM5N8riUZwvJvkJKRXbe/EUyfEDVp4bZV+HiPZ0OiR8RZaigatl5OUdDeBcxRbwx9DSmrGhA= 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:30:38 +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:08 +0530 Message-Id: <1488562101-6658-27-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: 48c51e16-d76b-40dd-fe12-08d4625b0414 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:FCp6DtepRVUQtPHhTDDOb5414wyB0wN7c5ewpN6sRUfLcy8qibE2gHFldBIv4itsUVXCEP4exqnXiLpuX1ENXkAWyYm+EWdtoB6d5mNpR34yuJv1q2WPfiFymhPXrISaPi2c3Zdl45hDd8XtMVIbk2MnVr21JO+POUm55F5rYmhXIjHcsLd0CAE89vvdY1WbjGH35RZjkPl0gdhCQzcRllAMCW8tWaDbM+ZVQRYqYmV2WjuEexkqvOLd5j56XI9eOsrEDOxHviKfbnpFRlg1Fg==; 25:5vuZGpHrNgc0AJsKyU+Js6jTProlyNj6AkZDIYpqpse4ld+Khxonbw1HgpyD2E/K50Sm4icNM2ajcyMTK0XnUhC69TzhewtbY8gBwCeMgiNhaax3ewsvOMuA74AmaA/275c3hK84vyaXY9ToiYaVAl1cUzhhv0knHjBjxYx8PlKc/yA9fr3kHJpU+/WpL5ik2GpLfYTzu7noMvp2ZQ/Li7m5VBL3eSvPRD3Byk+ScoudGDi9cjl9EC+psBCOr7G2Pf0q6tTvkA09h/QV4GdOwcIhUKktAxD727s24FPNiEMUiXXDFeWalpR9Oc8q+rCvZ32U49s3ZFR+ftKtINMr9WbV7bRKbE9eTbT3QHi7WPUffm87FwTZUFtGbvuP9uJsxfqL24h3cR70XEkzkTMVXt2STrhhAdTlfN5yZgyR+j9PgQ49mirwYv+knEXhZw4+2IuyUo6Fl/m89fZ7TC1QHg== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:ZZsl38AttoEvjWpTOCft1k1mnxjWuP87gsy9Dlx5TJ8pl2y/yivrnjdLSp0+8E+IzNFccvJPA3Sgq+qeuE4KNqxrr9KKUJx7+NOLOV3NsiJ1GE72nmeXMVZWRJ4pGl5kUoTzOx/IOMmlvKLRQwhgwo4GppgmxBHNuVNa6s6WtmbA3tKFMK7PhznTbuQYNpQd+MryLFlPvrFrAFCT2co7ytWhBjiZwjLS7+nsBmnX5Jw3h0YWR2SRUuBTYJEZ2ZU4; 20:EAUbGBhBV4yIaCo6eiy0admDjoq+HcIwRaebSgQMNROwZfbDTCXUVZcLOyqi2yh0BWHcYHg6yI/ih5Kcwl5kLvCm7wqhUaNzuhCz1DIUw7j/r/zvhLAiBAo4BXOG3A9nqKLKBFg17l7DEE2+fRFASTn198WyiP3zCNxTKYMgIjLsr672W1CTldCi1yyQ5xyjOCEDLj/4yh6G3Eg5X5j2ieUAPHLvw1jy48Ii0YZNUg19m+leq55NdhtJujCCuvIIatqBriA51OGXdFHPwqZw4reH1N/AWpAU9Q5WBn4h9clUPksMrznjHFcOzOpMJLmzhF/vY+6dK3Q48KfHRmjrz51ZMBlRXPkJdAlNPUiHGOpEPmHkZRmK+c+Bf0y5+Yy4b+IHKyAqckYJo8xS+oXQCqMP0mIqL0egS7DFhTSz2s+GrF68wRnC1dX6j2mmrF70RW4HjDW4ZvC4GNWAY12jV5DXVkfm/KTWRb9dzXqq8/B7ave3w9RRGqgDxY+XA3a/+fAP8LwUhjlyPaWxYF4Nioae/oJlWzQhxMEsHqpMCbsU2rP5zf7hvGqILSllpUmXKueTskvFcVjFx6eF63P2oSHIQG57r6bw2o7YC4xONBI= 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:/D2zxUqg/O4q7PktwlGpkYg99OW7/pLrKT9wMAadUPcNN53bJdNnMZ4Y0/3bHuv2QsOlyrcRVGFobN1i8G9T6OcrT+i2+zd6NMpzjkO11rb8wt9kU9pKy2EA8IAirwxZ1fzHA20mdrTn8Uvyj8b6Dp7+qQ6ZUJArAo//KSUVM9WJ/nnSI34ewR28Zf/CHehzv4FykRJi79oAETWGjkFJ1+7ZvrlR4b3Y57TUjppYBBgLKwKfGMjlisfUGimLKUNZ0nJqSnnYDcxB0pIZLXRCUttbU9BJwIGAryFKKzk2fNR/MjrX/BufLOXWllFVw5+wV9EF+8W1RroZ4EH1sNwDJRa0CgP66++Qo1xwRjGeXJby4h+UHiNXkpJNk1LrkjHnvB/3CGHIZw94nJ4nRqV/i7IOUUt/ZI/9i6zDKZ92EajIUycSkX+BorKUZ2njqgfHHzrMbuoXoUAFtKdTKc2+00p/XCSY7aK9e1swV20+v9OcnEBNF9e2fcD8jDMBkGEmm+imh22eGEOp/EeyO5a723QYT3RAgFyWYU1+ZuYt8TpQ9kU9cQtSQ7EI9sfnyNOUumrVZfhcnmal5VO1f+1cbaH/q207OAr/Ot5gLsV1Pxs= 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)(6666003)(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: =?us-ascii?Q?1; BN3PR0701MB1719; 23:DQhOn/tH2akQoG1zaRZ7APHpQVZxXLac+sK/QF2?= =?us-ascii?Q?L4/3R8SPfzeSx5QHWTfronKUtj/wq9ihZqCvtU0X9AHFxaCDmQJI1xpeZdQG?= =?us-ascii?Q?UQ2EtN452V1Dyct/0alxrQlqIRKiiYOo9D5wK/eSkj22ZdIILUgYgyMIDxsM?= =?us-ascii?Q?gJfBjve14ZjlY2wiPi8v4qq4qlnK844vJ9wIUBY+180x8G6NlnR3vamzvkPc?= =?us-ascii?Q?yXTFhkdb53qVYrtjcym1hcTLzS02Lz2wf5glyRejj3RODqUimA6vwmsh7DlG?= =?us-ascii?Q?6KBHinQvZxdejGVAw8od74Bg0Ztjv3X4E77RvtbKIeV0HcFhsvbGCVaIC4wq?= =?us-ascii?Q?CkSC6msKH0KbCWoD8T5w8LGuzfrzRzh1ZCvgcs9ZqbEF3NiCC7q5G4klTS9r?= =?us-ascii?Q?fJfKy9ONM/++cxrA7g96msNQx2M/mDZ6nqGuYYvfbcGhSRDE5KIlDUJV2udE?= =?us-ascii?Q?qx6Zz4qLk1nlQ3cvSh8kEmIfT394fBoq/LDPFJwH4NaFmOoccK2I5rb0/N6W?= =?us-ascii?Q?RkoSumDGan0qeMYVylDSmbD276sMx48UuutYlaJfcPeiropOfV9Q3PPgH5RO?= =?us-ascii?Q?uh3frlXOHiLoW/AFMP19xw0+CTZDvd8Bf2p0q2bhquQMXZy0sGjXUcRo7C5d?= =?us-ascii?Q?qXswbRoLxFsMcYJy96X+FB6hxoW4uzS+nE/d829i25u14ynU5+iuJsI1yHVP?= =?us-ascii?Q?82xb0o7i2oXMbqyUPMjqWviuYt4EPkaq071ELkHoyXpMj+aRfke30EyUxStG?= =?us-ascii?Q?YuRmRLPC2djeTlZMfGqIBf8WtAXyEEJz1Jzo2DcY5Ipc29XQudL2qmdLEymF?= =?us-ascii?Q?HvTEnPit51NFM1ziUbJitQ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5JsJrweF5y5u5XFkTuc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:5/Ma14BYS+uuW1K+xgG9s6YCCLHHRKm/jrEhJKtdA1L7Hl/fyIe/ON2X8hOtcDWR5OxSsV1rHahnbDa7M0dlplqPEC/+DEMB39Ac6WBG+Nc7beFJReaDBvShO23P55ebsDroCDqbLCxHu/B2HK2UMZ3nZW4/CjTfx38yVYNt1m4O7KA0eElfvnU1lXSdjcLVq6NoFB4VZ1TyLLfzrQkrjAA0w2FIyvEbpi4mjc1qH9FIHX/gtVBqE78trzXk4xfVl9S9R9S9zI3EPCkF5m1iD/pLWyBIwiP68c0JivXpkUZ/XQ2gH5pvIpk47Uzhj6Km1y8rSJNN36sHvHZ8Il0g8w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 17:30:38.2674 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 26/39] app/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, 03 Mar 2017 17:30:43 -0000 Added unit test case to verify enqueue and dequeue operations with multiple queues and a single port. Signed-off-by: Jerin Jacob --- app/test/test_eventdev_octeontx.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/test/test_eventdev_octeontx.c b/app/test/test_eventdev_octeontx.c index 47b029d..5a6e8f6 100644 --- a/app/test/test_eventdev_octeontx.c +++ b/app/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