From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0070.outbound.protection.outlook.com [104.47.34.70]) by dpdk.org (Postfix) with ESMTP id 034F22C24 for ; Sun, 19 Feb 2017 13:09:26 +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=u94VF5ey9EqolZ9pOUpPz3YaR71nDUX/sPG0rB1ujWM=; b=M/WlbDhAyxpD09LkLqsgiHQ15hLfiGXBsjncSTXimcc8B0vRLAXa8Pbx7GfpLn/Vbocammn3yA91aNLZuN692Ngn7e66ZvsHpKRwokoqcgMRRq9sXpAzBus9LI9p0j8eKCLp7/9P5w/j2BgRNEUmJ/E/NZqLaMSNJ3y4FspkVBk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from localhost.localdomain (122.172.181.0) by BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Sun, 19 Feb 2017 12:09:19 +0000 Date: Sun, 19 Feb 2017 17:39:03 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org Message-ID: <20170219120901.GB7400@localhost.localdomain> References: <1485879273-86228-1-git-send-email-harry.van.haaren@intel.com> <1487343252-16092-1-git-send-email-harry.van.haaren@intel.com> <1487343252-16092-4-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1487343252-16092-4-git-send-email-harry.van.haaren@intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.172.181.0] X-ClientProxiedBy: PN1PR01CA0050.INDPRD01.PROD.OUTLOOK.COM (10.164.136.150) To BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) X-MS-Office365-Filtering-Correlation-Id: 7173f65e-f515-42a5-4c3e-08d458c02328 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 3:qafZqueMnvO8/lH3Ld1Oh8qYtKofMPzf/kF8wuXBO7upTU5wtdZ6IVIioQeS/DNwtkeesgjwETSfENetsOGCjlI2kF2mlHjL+YNq/9KRzI95N/l+l1x+zgBRRYUEZ6oZcxFWG6a2GdsxuP9YzCZlcKQVcF9k9uYa5FlOBKIQ7wh7re6fiFjSs5vcuK+VR4KmsDcWr3zKR7aKvJaugsJ2H0bduO8vj4SbHIZw5aO5Uogdiiz2W7OHmlTQYQzbBinjQwscCot8qBUmvCOg9xBj5g==; 25:OjocwyKRcKjDhVzbcJMrQWbM6fSvE1ET7lfekNep5+aqj/wR79SihgOfzl69DZvDWo5nQ6slDbW02IAUhgcVTEMFE1Vy5L7CFp1CT90X+y/HQjOCEyHONhVcTco46dXMvV4kG+fan20RdV/6YEKeIt/XtWGCibV/MVPc7JvGAIa7kWbl2zrjipvIwNIcgLGvVepPo3+W93H1o1ZpVQSFnKNYbraakTpgFJnL2oPLDr+qEfN4DIXa4QA/6kHUWQlo+yxZvsfMALfYkqOccm+8O6AeWn+Rq67eyzkfgS1sFpvjVAuwjMPX+43pqq/cM/yteXxP/7Ue8LafZ4fjI+z/MMBEFHP2/4h3Z4CX8CEGaMzJOjlo5TAGjMlgWcMnzi77PWdVeb/qpgn5VHr0w970ZVAGR6Pmu/RsEgAn5nvrC4zLJ1pOZe5PCP2k33hj5Y1fnYYIXKZE+tdMY3hitRhX4A== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 31:WJpP57kFBDSvXIQiMimHG4KPanCwRQj/P7lB1GnT78kIUWRfe3+qMNTMZc9nSJnhdLXuoL3nuJhm2lCTnVqzp9TVknWr3wyOkJD7yMUPrXdtTTeAoN8BvJzYH2ewPnVyhkJwv8agkJuGU/XV+0lnGP2BQT2iaFQqzaZIyGS+yFOF6Q2MrzEugaowQ5UkzBaBCHZQjB6KLbtNXwOebEtAfiJG7BGeB0nkJF/tOveYgxTQcJsmD8tqWUHBxZCH3KxD; 20:ICCUosTFCOQN9Wyyr8MkkTIsD0N3JDE6Bn3gKTXSl8tPlukTX80T0y6iwgy3cgDFJ+79wpmZEoRcNWQQqxnwoPryS0AmkIxnY0DMlYRR1IIIdrPrW2JyjLaCUGT7k1NllGpOCxs1DvcxT7Zc+H/265PPPaGggo5bylZKPtjUagQG6iFrPj1eDoQdjA9m4m3QX5tpigKs+/Z/mpfD6KtmhTswOjSkIK3GJtl1vaZi1PRvt4NfFF4VA77sHItwsHlA6e8hApouuAnF7zXX7WZbE4uSV6PAeRo7NkwoYJ3BwH1KFq8j+nWzFBfPN+PFR96JaCOy4ozRW0G80eNUW60IntxtJ0cqPIgdxNEmM3lWJxfmJEFtJ5MlTeHfBf3aQoTuYHGB010sKqUHYUnm9VKC2ak1csCQlIaPvr1KVs1HQyW5mXtqXCkxXhxGHqjkv9ukcsgUOJNeKhZUqd0x4Z63i8OaOYFhpLFCBG4x7FojOImQDKauxFgj4bGkjjHYQ/FD0IW6CYiDuzo5hBkZpCgFYH/tdXAIJ1vM/DsoDbBINcSixuVmhlZCPS6w6eNB9EO3ppPGx5cP9Q06zAFM65xQQtNANrhGisexTdF2NRn23B0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123558025)(20161123564025)(6072148); SRVR:BY1PR0701MB1722; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 4:0ueUMu18ALvqYpbC1fM+2DUrhvh2RyqkjOHql5sZ79IYtq7tfZcv5xMMPqxuOIcL7/t4c6xZ0aKaj8+AkXh2Z5rCtoDqU8IzBLscVAKtlEBrHB29VQV7b7XE6aJVFU/PxF3tCw0CryzANv0wUIF8F34Bli3lnpr/K31vTWgSl0MI5YdBSknCdz5ABpx1sl8yj54zqzVIudDKSJM6xbfhS4Km2Cbe+YKirKff3TqUw/rcb6U2FRV8wCW6SfmUHtApvM1OHBnn10gvc/4OdY5+3AxusA2tR3LeBsY7FTLfOpXY2S6MEwp6OEJVROS2Ml0DNC2LcILDVvVRANXpM2PD/6YQRovQ45m8GOgw6rZg6XTgJUKgZT7YCgmhqvDN3jBrhjp/NV3nCEGkzXsxUcmC/nadz4q3+wY010LTyUra8rz+QJA80Tk23fu5S8ko3QEOJbV8d5umNdWUqnGvNlIamRHHeBtpGvxR/HcPhrGVXiiPwpznPrfmOOQcMxw112iN6tsHisBugCwD4g4rluEEg9lm8lEl7lIT+6HwvFja+Z6NM7zCDaMNEp4MKGexirb9xygnOujV1+wxhbA1tH1QnD1sxsZoyPF+Gi8WaMYgIZHHIB7adIz9yxlfUhVw28iPata8wPVSSNZ1jhXlqNFqdbuomylUvjl9YI+/26qDKy2A3BEjeQ6AnRbm/zLCWkLX X-Forefront-PRVS: 02234DBFF6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(24454002)(189002)(199003)(5660300001)(68736007)(92566002)(229853002)(6246003)(110136004)(2906002)(101416001)(83506001)(81166006)(6116002)(55016002)(8676002)(1076002)(81156014)(4001350100001)(54356999)(76176999)(97736004)(189998001)(50986999)(38730400002)(66066001)(61506002)(6506006)(23726003)(9686003)(3846002)(53936002)(50466002)(106356001)(25786008)(42882006)(33656002)(47776003)(42186005)(7736002)(305945005)(105586002)(6666003)(2950100002)(6916009)(18370500001)(7756004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1722; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1722; 23:L1tUrj66YBQnOicfTmDMi54lvr1gv5dO37f6Y3U?= =?us-ascii?Q?Lc/YAzuFFg88dsJSr/lTqO1bkmo0ANDTlgQEM+Vha2KLyKeNheXrzx8ycmen?= =?us-ascii?Q?Ure0rbZPw8IQRqsvfiyVu/j89xa8smmF4cccd/tZHJCDIFOswigf3fAsjMDf?= =?us-ascii?Q?KtxJ7g5vwe1/sfHtRAEdFD2YGYmPM8C042j2OW3s/qL5Nvga+QGAcRAha7lM?= =?us-ascii?Q?yy192z4gf/hrCuzc0uCqOxEy+zF8EMm3Jg4Bi0aF6ztOB54TyB/uEhvCXM7c?= =?us-ascii?Q?VQ+P7BvZk1mrecLc9jXfFlZ4vW1fPn8b+WW5w/ydnGoWCtg0Z7HDVFLuvFPP?= =?us-ascii?Q?mTD3K9kNkGApKA8i45w+NCg848WXtYoWaqvpvhmRFvyfssOUH0ivNOXRhzh2?= =?us-ascii?Q?JE3Px4pkPxsFZaEF1R63uvRfdICgYnYFkqQlmRX7hFWxmMPJiwNjTCeppioe?= =?us-ascii?Q?VAfqVtd6PJlORqhXhWOrit24+gSqbWTxt2pNdm1h6E/AcyyZR5Hn8UoIZwwM?= =?us-ascii?Q?cG0hhlLcrXo+LdIYnpEFQnP0wfB63taEBDenjgF29R9GN4dHAMpgJh78LXu3?= =?us-ascii?Q?zfoNJRBv6viM/xpmeEL6pui6mvMjxF3EvvNOxkX2iHARePWdCrLkCHhFUEIV?= =?us-ascii?Q?IZvVPRU7zR8EB7kk0TRDTOqAoriBFiygUIup1xqsIobPMvBGQDLeAm2zhVHR?= =?us-ascii?Q?/RYcTpfqCEKLOsCqbkQSeLl/0Z4AbXYrHDM4TD17vzC0iZV+8k1HvRcWWXkE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LYmkuZX5XMYmMFh9K7PHzEQleokW3uqy2EBbUoAqjp+89VhlOOHnjApmKi56Z5XLxp+5B+w08RFxAGgYnk+pBq3GxHPJ5hQ06AhlOAgFKnIW2H7SnCSDwAHUBtxI4ff3PWFk2lf9MMAi09x2w6AWw==; 24:9Wcypqbg67xmNu+f2ljyDasLf7l7L6GeFvj+W+TD2RoDdhK9OpPBEAusfJ5S71gl5gSG/AokODso8I3PtS+h/PJsApBs0RBTckTywkrIz3k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 7:1H5/RfWB2PoleRPf1GT9t5tLblaQR+9AqB1YcRmk5Et9GD0jAt34Ci2pSlzeK3YRKnqkED56TJ37c5LRrr8EQPTtmLmFEpM7bhAulJOGa8Jtl9llZJe10nw4bG8jOtdwM+77s0f452OxSguUaS3/INT0lPYKEh0lN+Ns0QFlMOSaCH4xYsWFr1ce6CdKMB044CrThY8tr0wdrPmRm0C0QHWLRyNu6eKKL8qmWObsZcP5RLllxyGXS5WBAcs49o8NPrNfs1BiJQEf3AYuiPaO6SOeG+m3YRxHNszNaWcKrI1fXo1SnOyXY4Hx0Mgopk1r1kQL5zEzSQEWhAu+/R6nlw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2017 12:09:19.8984 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1722 Subject: Re: [dpdk-dev] [PATCH v3 03/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: Sun, 19 Feb 2017 12:09:27 -0000 On Fri, Feb 17, 2017 at 02:53:58PM +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 > --- > app/test/test_eventdev.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c > index 756bc32..7d4160d 100644 > --- a/app/test/test_eventdev.c > +++ b/app/test/test_eventdev.c > @@ -545,6 +545,14 @@ test_eventdev_start_stop(void) > TEST_ASSERT_SUCCESS(ret, "Failed to setup port%d", i); > } > > + for (i = 0; i < rte_event_queue_count(TEST_DEV_ID); i++) { > + uint8_t queue = i; > + uint8_t prio = 0; > + ret = rte_event_port_link(TEST_DEV_ID, 0, &queue, &prio, 1); You can replace the for loop and pass NULL to link all the queues. i.e rte_event_port_link(TEST_DEV_ID, 0, NULL, NULL, 0); > + TEST_ASSERT(ret == 1, "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); > > @@ -571,6 +579,14 @@ eventdev_setup_device(void) > TEST_ASSERT_SUCCESS(ret, "Failed to setup port%d", i); > } > > + for (i = 0; i < rte_event_queue_count(TEST_DEV_ID); i++) { > + uint8_t queue = i; > + uint8_t prio = 0; > + ret = rte_event_port_link(TEST_DEV_ID, 0, &queue, &prio, 1); > + TEST_ASSERT(ret == 1, "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 >