From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0051.outbound.protection.outlook.com [104.47.42.51]) by dpdk.org (Postfix) with ESMTP id AF1FE69D4 for ; Mon, 20 Mar 2017 05:46:23 +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=GrUM/RkBlCp4BOHgxGzqFVXwO9mAZXll1J3PGiDsFW0=; b=nvmKqc9Hp0pM5zWnCCwIQrK71Sb5IiQ6sTuitD+K4jc+jnwm1jCWRj7MrrnBh10zIDTZsM7V8rpm9xQ/bLQKukKxHmuBAayXZ406HT2YqVAz7O/wBDg0H69XL4UTXK84wPbg8Ui3bO/3U5SDILEveTN10zA4gmch3jRo1u0jFCg= 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 (106.200.203.54) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Mon, 20 Mar 2017 04:46:20 +0000 Date: Mon, 20 Mar 2017 10:16:05 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org Message-ID: <20170320044604.3s6nznimvyv52ehr@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1489175012-101439-3-git-send-email-harry.van.haaren@intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [106.200.203.54] X-ClientProxiedBy: PN1PR01CA0098.INDPRD01.PROD.OUTLOOK.COM (10.174.144.14) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: f9568643-beeb-47e7-3c22-08d46f4c0e37 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 3:/4zHq4ntBDmJleq/gJKcZ2J4OjS6XwvjHUTyyOQlbcMfQDYCxLmRr4rLq5UcFI7tbyjLmzj7yQXRvWfhXJnm3Vplkx8lVrC8/JqB6qzuDgGvHl+WEXPo/wKUY0qmfrv41fQTdeyGJhSSyXXO9p+btWJJ4xmpxhuMESp7kx18TTIfI1J/hIM8OHa+PvzzxITfsbTo4rdJNvtxsc/n1crew8xKopF9tn9kA3VznobJ3luGsrfOCa0RryS7s/8R+hT4b8A64u42RHGTbIJ3iVptCg==; 25:cV73qPU0DVZrY3DmrRxFU3UgFMTvBXNUjEVH5r0k9MPIqzXNRBRKgd+EkDzLISj0i8Tr0Q87Lgn631wnaDejCXpCe0vX7xOttY86UF+b6MmYzif5BmMfI/pCE5g3bsrqd/QwcxB0rLLqCgt997gNAa4i2+irBjG14r3x6DaxIHexY8lgTwh+vm7gmi0IR2gX9y9mx7X7hu0kDviopRKeU962mi1a/MLimSRCII9kHeYGNrGvu8rLzRlZDGst8k8IkgTs7DUsTQCqkDuXQhIWILX3N/x1GC5oPYTUiFztjtyWxvCh3MvkKVQHN8OhjcoEBnETUwqc498gsSpQDTUCL25XDq6aIV0Ns6kIMkJmtN2B3c6gG3EL6HAcAGsoFLckJj/RvvwiB7l/FKOOkfiUR52nwwyVigt7Py80OeX8VAieLUWzN0fVyeTvjYv8bOt/LPU8fjuqAqJGdzS1HG43Lw== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 31:4EBp4Y2hr3hhVtqslv65hXapJPIXlctynXly4mF090RZ4EZTPANj9SbgsjrGpLHneq1VWwhcHQIaCw5ZoE1OuJ0dt4HUBZLAhkrQhyTlfVpSrS8Luq5cSCf3yzHXAvTwrbZYEflYEX/mhjV2kecGT3FtQyyFu3Tt4zKAXs+/rSSO5ABwL+PHMHCzDABDsssHNmZ2J3cwAQVEnEDo+226BfAcuWUwH9/uhidsQzSXIjZTvfy510SKZgfIXcqP6HwR; 20:3jdTyjpqp5rZgSLqdn5MA5G2RtLjksEJjRNW24493zRV2nj6XITLU6SnyfK1mvIex6kgP5eooBCzWB5lUPnc1BQRI5lSiEju32EnnCuQa6fuClgw9NZAIwkTpdi7pDY1mm+/SpV75PGbd739aA7GIjjID1VQRvaClri+IAIUFWexPDkqwr5haXq5Z2pYCI7jVWxKz5jkAqQMbo7vVL4daxF+6UY1/ZmqcJhm/B/XYZhcXcmlyvBcYyo7wfxBs4m7/nDQPtKnZ+bPQ0QLAs8ArAlq0SbiCCg2lxtzbZvtczOKUfNgmf7t2aQRcnPItcjyuoDCstuZZ8j3nKijqIXPfQ7Dqbel7wuVLp+2wzWgMDT3HuRvC/Ie/M8DUj7G1kkJDY4eLD3Si9TT5ACRgqclowZ7hTJ8zxqcMSzSNUdNTNZHjqc9yfv8pqaVkQAPmMNw3N2JAOg0khqHIO5HD1TPVRKjajZ+J+7N/R1xAtsvUvs2is8RJqEoMd/HYPcZdi7CHuKVbDSh/c5oksNKLf7B4NuJzcZU9RSs0RogvVJbe5VkP8RdtESD7fcnQ+p8k/kRBaYTFe+Cisybox/TXOWBRUjDabV1B0XDHeUPvYlIg6o= 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)(10201501046)(3002001)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(20161123558025)(6072148); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:/X94oTgMx/CNEexL2GWgQgsP3YXYzzp2Gd6sF6bwueIJj9Ir/7i+RfocUQHMKwPTHW3yG2MP/gkD4fUUHlIhgAj/gorMTd3UJ2NpRgrOqRnrHLx4Cfhow0axPM/AVKa24DEzYhztNMgxkeQG/noXevqD/vD88HODjwVCA3pOJJPAYPeVqOiGDHT7rKGW3bAMU1inpW5KmgIK0jT3k6MSerAlFVi/wuZfViK5H5hN95I98Bjw6EdgSz8VFZSyDahKMQp0wbuKvjgnj1czpF2lBFlnb7sE5ks0zuNNkOevkdGQwe4T9xra5+FUZuymJpusCpChInxKE2ujDraaXg1YbA11TMEDbqt3pwIMgBBVpDP4uOk8xbcniqLNMQt5ZjZJRoIRNPvKeFbpbU4ooKK+OCfAJungwD1sSRyn2+Dpn/Unpp+N+kZQ+WYJKIAIHuhC+bqbTO4WzH/WmPN5nlP+fpsH+8SXcHSbTfz2dbT0XExqBGhmwClFJKvHSexyfCDpvpvR5KJmGoKE455Di/pDUxQ7VeRPUaOF0qu69J+WaprMZ48OOeg01rDwp6CoBxRpGhxzRTD0pDD/vHZFysJCHcb2/vajgy4kd2CQX+Oh7mFyy20By6oJThIUqoKUr507rHKgHjlxrcte64eRNvDVoQ== X-Forefront-PRVS: 02524402D6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39410400002)(39450400003)(39830400002)(24454002)(53936002)(50466002)(4326008)(81166006)(6916009)(42882006)(47776003)(7736002)(66066001)(6666003)(305945005)(2950100002)(6116002)(55016002)(61506002)(42186005)(6506006)(25786008)(23726003)(3846002)(1076002)(5660300001)(4001350100001)(5009440100003)(50986999)(83506001)(110136004)(2906002)(38730400002)(6246003)(229853002)(189998001)(76176999)(54356999)(8676002)(33646002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; B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AzQ?= =?us-ascii?Q?AA4wZte45kWOF+UnQClqwehPLLjN9kXwO+WkMnoVdlRj2/vzni8DqaIlaxQT?= =?us-ascii?Q?uy7Zu9jX93xZrS/LqaEgI/ub5yUEUEwIWNalBcA1lZ2Lb0JUEZ4/IUggaB1A?= =?us-ascii?Q?gRaEDwCQLuugnkUlPb1f9I12Bvhybfh1ygaFKsLDsKOVaYt+qRc6PY7ja1Ox?= =?us-ascii?Q?3rC3OjUmuRDh4/+1Mwec9pDOjdqyp6Pa2HBCseFtdcUlWFkBbSg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 6:DLSl80LPRg++Frx+PwMIwp41rE06/FPdWl/PhSBU5AcQwOrAhwFdhjb+r8bSew6PiZyrcfITfYK8OZunskg+LoUWFubrIMQZpjIExsNAyyMD0U1H39YtACvXmVV2peKQCPPsGJE2LmH11nG/8BdLSo8jgoQaQ0K8syr5SWoEBQzFykypXfnsnpbjXe2YbUH9f4KLeb3Frm7XKc3t7D83Ru4iJcznoU7y/zum4cY1duI/avEtgkJs6bkqurJBEA/niedqKQbt5pXvHUzeel/TC/ayuFwEmEvFRf9NZtM2orr6zwOVdourzUxfX5gXfg8afpgK0wCqVz+tPKE3xwK7QkZ7nynw4hstplxP+1EdhxdDG6DDjTS0b3eyChzJ2XpUMEAmxoBUGAF4y6tcZMPYQA==; 5:zXz/tUPcUTbUd9rb/wwrz9gdAvWC6KH71rQzqDH7pkaCqzVig+/MXpOGz1YTD9tW50x15LF0/PAwqV4kZmzJIE+k/ZUqfsg0hFSz7Jqex1diJ+hrrb5pBXA6kYlIbOg3pZX5/HmA+e6xADp58ZKnmw==; 24:5OeqjKOjLeG7JFnd8ZnYZMN6Fjj5pjyF0lr0gyct20BBSxBOdn0xbvxk9bheYuDZnZoaojvUlw/+i1e2/wqWXhDCHwiIGvw6pq1R8tV2+8g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 7:N3738Uy4YfXuoomTVtndE8qMXEh84NrOY5HArZy4kjIcCC9ixgaDQ+6XU+DcU7Yf8WgQdlalnIF+zu9+dBuD/mR6vN2ilC0kBC7W4pmnIFWRT1Vg3tbOzXj8S+DJNRDpj3x7tWEc8HbnQziBQ/Ach/ofNXTlXQ5Ffg8NpvWG+7DTIJw/xrDp37Qe7/pg2Y74DofLbwBCiXbFmbUUeibv8uHeQ114HydbRFsLKaQIeiqjun/zu/cVYRD/LWedM4Cnxl44e+s+u+iA//YHjHddJAJ9ZInUlpd9ySu06rfcTbpDRrjuadGYS79HpRDB+enWiAFQ4hEhspsBFAHZb/KeFQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2017 04:46:20.1682 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 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: Mon, 20 Mar 2017 04:46:24 -0000 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 > --- > 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 >