From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0059.outbound.protection.outlook.com [104.47.42.59]) by dpdk.org (Postfix) with ESMTP id 89FD6695C for ; Thu, 23 Mar 2017 11:19:03 +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=hgJFGEkr4FKU5BKV0cu8yeKwCLsbthGBzwiBUl82HbY=; b=ELkDvwISVSdyMFp0KRSkd/E+y5qQOklT0u+jkQTSQozI8lpCtgq1taoVws3N0nR3TGjEuQ3E2AMM0a502gaKv0SRtf5zNInRaXtzepLBiPKh3qjpldck/VdkU0bVQRjKslwqVPoN1hLVQiMvWhTk/zsdd3qUQxeypcgb3vH8jVc= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (171.76.89.237) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Thu, 23 Mar 2017 10:19:00 +0000 Date: Thu, 23 Mar 2017 15:48:43 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org Message-ID: <20170323101842.dkaggt532l4grbis@localhost.localdomain> References: <1487343252-16092-1-git-send-email-harry.van.haaren@intel.com> <1489175012-101439-1-git-send-email-harry.van.haaren@intel.com> <1489175012-101439-3-git-send-email-harry.van.haaren@intel.com> <20170320044604.3s6nznimvyv52ehr@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170320044604.3s6nznimvyv52ehr@localhost.localdomain> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [171.76.89.237] X-ClientProxiedBy: MA1PR01CA0014.INDPRD01.PROD.OUTLOOK.COM (10.164.117.21) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: d9dd49f2-1ffc-43e3-50c0-08d471d60713 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:0z8rx/E0xE5PtK18HbOm5fCTNW5463xA4SGW5rxE1/hLIosSxBB9HobIsDPSyfZ3VLf2ow5jcszFNRFUBpgeUgfrVfb1U8zn2fuxYgtopDL3QEzH8TxGXcgfyMGZS2jGw9Gibe5aVfVvQgrcEE1Z8UAkyZDD1PLk+sCOAU/cEUTKodcMXdfjOjCm98ZlJLN3a/r0Y5wMK/s0+7ZHS436iFV9+8H7f60+XZbYJw3T5hxgDC8EuBARwWha5HsFFQIbKed9TwiNeGGHFM2Glbd/Jw==; 25:HXyhLyCXQmrft9ziweV/xSjlMQVUJ668BElwH3IB5PysZ/cKRy7cQxSfZbURwHYtFsdQ3idPro1NER4m64BrdlsUDYheeOhOjEiXrxPskNyks8ASgJPu/uAoZDDb/HF8ksUvij+ls1T1HEnumHW+jc5ij0+6bNf3FbNBBN3ht29ViWnJLAJrplm/6FjEnzkm3/HMIdyDmP5DJr667ipJQna8bhxR8sV1Yk4MfsNVsgpn85vY5VDyTRcw7HgAlpDqGofKt0PWQ8exurvkBFt2E8U8V7cFxqqBRM03r/fe0NiT0pkLanIc+9bD9R/BLaczPKd7UoxbU7eCAus9sx/Z4YZM7fBBOgoCkOsTBzo+XQ6yC4pSL5g/OUeLUC9ZH3NrAafsbJY4fA7LZsk+EYEjUe2yHbmcev1pCI4M7yvC0feIzSopVN+TXkX1rwSQ564ga7nM9Vbw7Lq+mIQsqT5wEw== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:vVZTIGbaJJxDddJymk/Gx5a7VvvJMTk4EeBlvdGBzASpiAScksDa8+BnyW03FkBQX2h4fz175U6pBmsgEQSmW65oOyRIdcmWhAkDaiA8PItRyrzEtBJR5RB7chXLI0BeMojKTaRbQI8OC8NB4YRErR4RJfDsRfNyxWwRU5g9doge4o5jsz19pmJyGfmLiO77UdPTTWYAGtNxR2v7sCAxS6B/JtVj3yZheeouqo+rWQm8pDFtj3ZUlSWNTzwdSGDLK38cGe8PlEPJiP13hKOJVQ==; 20:ykSvNZ8HdPQjVS8fD9071+eWsGGdnwqX4Llk4IZfFUpVbnXNEfOULo4hW3bHdXzYBm0yhu92ch/XqpEnO0G6ru7OaqBTZ3670vP/fTQJm8QxuPSqmMA1Ob9n48Qn0JzWReMAJ/4dd9c9mdRDnnKT5Jj6dtd6bUycS+Pp14ib510nGBpBzTfg/r/q2CzRc8B4I+2ktJBNgZyGtTvkhTeMF+kfspPCyUdkzB4RNEcWKZxu1DKKzptheZFuaB6aGDqp1Gf2H2U9xOgFjUZjz4FnuzWngW7jUTmGDYvsl8kOR0C+rnAypOE8AjcPEA3EgqF8LFj5X6Ny0LvvQ9NJKK5UcNADtaZv5ZuTQAHYLms9C7e84phyjoD9NaslmXJivDzz8s2ns2B7XTm89TM2qex+6KJ26XZX37ujqxxrCJJWcs7XWnCd+5Q99ZTy8rJ7FjcGy2UZxydw/94sChpIXiN0d/Lad6HIyZcqzP2Q3lRSG37/cmFHl4hUztLe59sCFz7kyuOGSd/3DFlH80o9Lneadyw+HarB+eV1LOj5CymY4Vezq35heOpdwXNwbn0vOV62KByQTwqH75TIfIa5UnKivPIbRBcAW3+F1YncTqserRM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(20161123558025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:jrgzNctAgnWpVAoxOtifG03btmSJG7rfqUZJOKMPbq/KXW++2Kvj2ce72wfCaj6L088HFuJXTI6rdA5p+7PlbpBnPb6xRkP3hEOs4M6a1hAzoYKyCl5Rr7xeSh/vLodQ97IpuWf3wEfrtxw5kKepL3lhJ3Ond2E0jSlG/B+QZUMlxKbbiWWh5GC9Mb0EwaWLVI3ODT4sM2Rgo5DE++k2fv9xtUxYqErarvLF5gSfYzMNhAZyw8V/y8Us0yAgGvFZ5KRTLdp4qp3FGDet7s0DZd9VLBmZhV/U2G8wmBvOGgMhONRajZpK/DtWgr5slYHi8aw92LuVYog1NYhhr02XlDEWrIHgBfNRqCQa+73M4fb+Rwh1TK3WLFZZTV9BIhOQL0XAA7OS4gA/Wc8/R2IoJRhAzlBhAudwZtbNY901FKH2wFkNvqYieZC42N3KDAMdXk2++IhtaiDg6HtS7vFAXz7Dd2/bzsB5U3eJ+zxvBBkDgZAjnttlytygjAuMYS5+LSVFfMW6ZmAXHt3hJP8GB6MTsK5abcySwkq3cu6JrRJ8iTiqlfp1Rvc+l7t5bdb7J8JbkWxCTiKyJGBBi4a0VzAw8auIievLJKeARIPQMiH+f8LHRneKH9oflFNVXtYktubTyKkpXup+dwrXxhlqnQ== X-Forefront-PRVS: 0255DF69B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39450400003)(24454002)(66066001)(6916009)(2950100002)(25786009)(47776003)(42882006)(6666003)(7736002)(61506002)(93886004)(305945005)(33646002)(50986999)(54356999)(76176999)(6246003)(6116002)(81166006)(8676002)(1076002)(23726003)(3846002)(50466002)(4001350100001)(229853002)(189998001)(110136004)(53936002)(6506006)(83506001)(5660300001)(55016002)(38730400002)(2906002)(9686003)(42186005)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1719; 23:nmMpIDfPoJdLM2e3yOumiKYQOJrpARNFRpVfwG7?= =?us-ascii?Q?/rnFeusagZfG8mzGc34DgE9z5jn8hWxc7Pyy84tkyVSXS6iyuHMC4Jw+VjWu?= =?us-ascii?Q?RQ5bSehrLjHEQReX4WK4zvNLKC7A0+Coq2rhBebB5Bmfku7yolGIoMRj4EOS?= =?us-ascii?Q?8UU2aCKbSe0nR7ycn0uVjHeDig12fR355cKs6HLmbzB398f1JTP0Soeb4vkE?= =?us-ascii?Q?G4z1uHxaY/fhRycBpd8HsMk2W/HnlZNW5h7VGcAYIERSj1tF/wKPlrj0AFcE?= =?us-ascii?Q?HXNMVAnM1w1M7BTEdhbp1cJgCIx+wRQxsZV1YWLJ+s++joSScC9alflrune2?= =?us-ascii?Q?ZvipAfwQxPWqANPpZAXjMXpy/im4KK/lEzA9JdpdLkkZBycP59TBddilhP9l?= =?us-ascii?Q?jlsbT+zvyh2RgzvwPknFnaqQqw5e90KekY9SLcJcc/BKWXXbDREdBPr57c+7?= =?us-ascii?Q?49bBRJ/JiaUXrtFcHJmglcNFkvEJL8IL3atEJSA2L6kx1pbJrHPjMQsMHxT1?= =?us-ascii?Q?zEtxHLh/2aVa1s1zrXakCJK2PJGiCDgti7DEwiImFnv9dXrN6t8ce0nvMSeQ?= =?us-ascii?Q?8xyPVkC0b5JW/jniw4XPOeqJsJ8dgHPpPvpKWeEzLeFOhROC31tfk+A5eldg?= =?us-ascii?Q?iVUWaRhfZwKMFGoLGGyv9xkVLzmpQR5zgE/n6n5uANg11hS4cJpeAKGoFGTX?= =?us-ascii?Q?IsYhPU8Sdpo2WiffmIsGPnbIe1ABOsj2Ra1yzP0vCpEhioOmnlPOsDh1M18a?= =?us-ascii?Q?drZpUU8yi49AknmXX6C8o3QvNhL6RESb3/47UTO5RjVoqoC5fucreHR3rVQZ?= =?us-ascii?Q?Rvj8mVf/yTnHiJjJR8kR1/GZjIhlNfW7BI9dAeW/IMK5VhNOVWLhqXl8D8KC?= =?us-ascii?Q?ARX8ltMX+WqTGRMJj5O1zLxI6T/w/XrFuuiy+BVOO7pAtnH2G5dIYe/O1jM+?= =?us-ascii?Q?X+pd+kRvfZsKQPU3SfYqPVuBbhJFc+DHrYigttXdxl5F2G3iXtOP3YCxrUB4?= =?us-ascii?Q?kxdq2xe9JHai+MHwLXNkjxwic9TvCAlJaWnQ/15is7HyETw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 6:CBBhgO7X5U4fiOYEMRvQvkR9pyC4rCiDTj23CDPvjLEJoBXNjEyxrJfeDl6rLnUdVoZZPapUhj5gLVG6uh7yEcWm/BAbC189wTusFs/W802XuJTx1ccXBiyHQdgtk0eHMb7fUIw+dNRdqAFALNqD6F2OFRy1ZAFSlVfSkcxLG8ppt/3SwXGaUktJeRVlhITPPMF2ENTMnNR1g+UAkzsp0FGj+FJYWSaFSlEZmr32E1iFcWgjsEvcf/3wIZTG9ntUU7GMSXPUSZc/rAvZqKy30GD1bZikm1gif9G597ezoDvhVNRtnuIn013uRfVfuy/j/+JSaj63PGJ4EwQbb96NYAMPy/BlwXpxDmZPss659SWI5IIKlxTuqPTNBr3/Q7sFc2XT6NC4/BY00oTFmNRfsQ==; 5:FDIu0bj2qm0G8DWa6HUocnIA77hattdouy/0ejDLl1nVzTPSgF0oHr05UgGQaurAQ6T6Db2S7XA8lNKyamZliFlYaDwX3oZrbTWfdD0cBqYQQKkqGqObJP96NW5P3HsvQjd7a9zhD4meEBkVH2gxjg==; 24:MNZ1kYv4dmjFOdP12CInK+603Qa/+oAwq4FrgQ9C6w1myJhwTOThgxA3S/POUPxbJtJuZRNvYzutN5j31z+iVVBQ4aemWy1op4wykTbM7Vk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:uiCcpyrtMtPbbIoK8Mr+PjNpv09gs1S4E04kBeeHrtL9Hg0GATWTo0Gz9mW82fOWS8Fv5JaBKPMtPXtYrElDJ3v31r8DQW1TEyokeeuknGIS5Y+7c2n02OXnQp4pwxxDqX6TCM/fffbfaJLy8IxF4wxnbdS2I77bFqximL1dSbYu9git4OoH8N9b3T7BK8KA8ARJLhHnL2vB+OnUa8rCypgFtrljujwXVdsKppEBTkS5GbE6XrRtdp+i9nzMenT+/wAGVGl+IwqsI+f1VNbTeROJj0HJwLYocKL9/8Nf7kjnucp8rDlJ78mr9GYJjWJF6qEr7nsgwIAFk/8H4KQJEw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2017 10:19:00.8291 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: Re: [dpdk-dev] [PATCH v4 02/17] app/test: eventdev link all queues before start 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: Thu, 23 Mar 2017 10:19:04 -0000 On Mon, Mar 20, 2017 at 10:16:04AM +0530, Jerin Jacob wrote: > On Fri, Mar 10, 2017 at 07:43:17PM +0000, Harry van Haaren wrote: > > The software eventdev can lock-up if not all queues are > > linked to a port. For this reason, the software evendev > > fails to start if queues are not linked to anything. > > > > This commit creates dummy links from all queues to port > > 0 in the eventdev setup function and start/stop test, > > which would otherwise fail due to unlinked queues. > > > > Signed-off-by: Harry van Haaren > > Acked-by: Jerin Jacob Applied to dpdk-next-eventdev/master. Thanks. > > > --- > > app/test/test_eventdev.c | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c > > index 042a446..324ef5a 100644 > > --- a/app/test/test_eventdev.c > > +++ b/app/test/test_eventdev.c > > @@ -543,6 +543,10 @@ test_eventdev_start_stop(void) > > TEST_ASSERT_SUCCESS(ret, "Failed to setup port%d", i); > > } > > > > + ret = rte_event_port_link(TEST_DEV_ID, 0, NULL, NULL, 0); > > + TEST_ASSERT(ret == rte_event_queue_count(TEST_DEV_ID), > > + "Failed to link port, device %d", TEST_DEV_ID); > > + > > ret = rte_event_dev_start(TEST_DEV_ID); > > TEST_ASSERT_SUCCESS(ret, "Failed to start device%d", TEST_DEV_ID); > > > > @@ -569,6 +573,10 @@ eventdev_setup_device(void) > > TEST_ASSERT_SUCCESS(ret, "Failed to setup port%d", i); > > } > > > > + ret = rte_event_port_link(TEST_DEV_ID, 0, NULL, NULL, 0); > > + TEST_ASSERT(ret == rte_event_queue_count(TEST_DEV_ID), > > + "Failed to link port, device %d", TEST_DEV_ID); > > + > > ret = rte_event_dev_start(TEST_DEV_ID); > > TEST_ASSERT_SUCCESS(ret, "Failed to start device%d", TEST_DEV_ID); > > > > -- > > 2.7.4 > >