From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0065.outbound.protection.outlook.com [104.47.36.65]) by dpdk.org (Postfix) with ESMTP id 7DC472C1A for ; Wed, 7 Jun 2017 12:34:33 +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=L3xHInO4nBjAi5p8rN/hukI+6Jyzf0QFlvfp4Cy7OJg=; b=iYSEtL6B9heq6yWzjH0CM3Y/Qg12oOYgaq/R71kSxs28RF56/7idEyUT6XK8bS23jnn+nMkyuHwNvXcsnkPaq//fJUzEZlj3VgWYyPRjWDiGQ/Ywzw3Avd5vq3n4xMPU0c3Klk/YU+3h/0hJ4ZXGcHmR4HFOCcEo1FmBRD8uRmE= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Wed, 7 Jun 2017 10:34:30 +0000 From: Pavan Nikhilesh To: dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, Pavan Nikhilesh Bhagavatula Date: Wed, 7 Jun 2017 16:04:08 +0530 Message-Id: <1496831648-28048-1-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0034.INDPRD01.PROD.OUTLOOK.COM (10.174.214.20) To DM5PR07MB3466.namprd07.prod.outlook.com (10.164.153.21) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR07MB3466: X-MS-Office365-Filtering-Correlation-Id: ddb2dd21-a9e0-4a6c-a070-08d4ad90c87f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 3:cIHCfV4Kb26yS09f9JMjQffvpKwqiLesxEldAvIK/S4v2HRf1ozkx1kjgwiHPSVLDwed2Kc5+bYEINs3RmbVzi9AWIdrtaQTb2fHRvxXqOuxo7hvELK+Lmk9Z7yMWWcOMIOFW0Pt3R5FvcrQ+2tI78HE4Eh0caSxOZR7aEVUkQbwLVTeTBOPSEKleMlV+3qJS9Eru0Lz36FXRrBhBalXJVqaMiBYEj+t9Hzvq9rVqtX2YQgWjeJD1Tp0Qo1Vn+A9bddTvt7r64kgmjUz+nYs6wvfmrbz2MVmovR1dVt3bLCKf/AxGURoMMXxKdkKQ0VQ7hAnCGcWOcyaTw7RbF+n2g==; 25:Xl0tw054//fSIJ2QLClMFuwvK2PquTdWvTvmdRpnbgZRJ3NVKGRRk47uc9XduR2eXydiZQQnog7xqkl17FvWi2YlIDwDTaa7TXYzMQqz33/3BAYRmKN8TQ2FTLLOqBHLJGdBTj3vaSVKA+rVSG83gB9BvkmSaD+wZxD2P+D7NsO5g9wwRO+ZVhP7/uL8vjQoSzC7RW3aXdLHurbd3XW7dhbclpWY6g3qlHkR2fWuqeiJLikVcpo93wkGLZABGHRCdiDQ9SflCcoVBqUUqmmVVqfWWSJOdE5mrCfL8G8otD2D2+NCi1TgAGercimoJz7k+NnNpYKCA6yberLSp+Obm+UIiBdYqbhT7Q2L8JG3oca1elUv/boPQGD5VbYtKsQEmyp9FDFnK3ZrAQSZ9ABG0MrIZ7TcQLCTIWlX2BQqrlLreA32AyRuqKxSwkaXvZmxOFkJd+6k+4QrR8dWSmrj01ezDOeTrzEHWlGvBF7Z3Wk= X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 31:k1Imc4H2N5bp6f9OBwVQKf8rmqnAJEwzP8jrvJviNZLttC+IokIPjpm1S6QlWtQPnseOPEhNy/vcUpZBun6HaxAm1Udy2m8QBi9ajc6NOLCGdVoexqkPRnp36XKSHQcT5lJLc8Jjzen0xUjAFXe4iFn9RPdZfzES+B2GyEPWvmugYWTY0/s8CrP9XA438CfIMAqoWl0Rzc06D0xky0FNgFLCpJV8yAkdI5649vxMAoM=; 20:b251QUtpA1/o5wlouhXEDKwpmqr7IEUJd/36Yk/cHZ/XEkfMDty7IRLFg8CIYHwS8eTO5TgiuorOwmROFvUz4APKNf4z3o0rcWC6klbbzqTb+iME9TWNdLcM2Q1gmqPJ/29GF+mfJ3+HSdqupHVnD0jE0fuaJIzjBFdTqaZz0xypC3OtxVng5pw7fBj4kRaqNH6xd9rRZL+rscRF46cv9Mx/8enS/4dpCLeGqnL3YkN9atanFjW74kkxlyMwPKnxKox9wvSq3Et2Jo39hTNaGEIwoQPHrCpEmJi53ikx5zaKh3cotzTOSKRdaBAdLU7L0Tc1fiG2ym0e84nlOj7jBO9IgBlrDbTW2KE+jnGTdZ7qbduHX6tdae8xIjF0r6JXjziquzzhHvIq5bqp0ibToEarKOSC2ZMluriqZcm4AcF2BxYkCxBnJ1sjSffjitjzKyX+MWe2wsHo0LJN9UE6NQVpx6Lm2B/bue4KiiDigyh0IF/nRY6gC0ozc3k0/jOAw8aNXETh7gM32OuY8XA3rSONKSwfVjEtC6W/lM/5zlwKVB4yQbGGkksJwBMsPMRcJm0AbwduiwYFZnbSbvSS30b4Borlkouun01Ohy3r4Wk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3466; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3466; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3466; 4:lRLmgwj7fvsY59hMrHbKD88qRnK6on60ueyHPKFdF+?= =?us-ascii?Q?Ol5Bw0OZ55jCsHxYhNTr4tkFQKUSi9ci5r2TKyH8WgdkxfNbhMHlZSUYXbsP?= =?us-ascii?Q?Oaa5RHOGhx+UmqICOffWmfCwI08Rlvrsx1Gkx/2/4NUZ2i0tJpMesuINzwi8?= =?us-ascii?Q?8SSsvJQw18Lx118CjItaI+3WOCFvhXR3/KLRnHiQNKzYMZZ4qZyJNl8KOn+e?= =?us-ascii?Q?oMxXLTkgykd8rAZDSVgLRInq4+vOCjaoCKdv7ODqaxieDyuxi+bTxla5mCoK?= =?us-ascii?Q?DT+ESMRdmjWcT6JAjdDAd5K55CC82qXsc9hJmwcKg+nhDLu3pN+LpEzy2MdE?= =?us-ascii?Q?2uPQQWAY2wV9m6OrL+3kzHkT5N7NHirYX3+ZwJ2El1B4DdQCLrFEno2PX+j8?= =?us-ascii?Q?LOUT/j5SrFoxFPJMn4MbVvLHcR9xasr1NsdJE4Ytw4QYLdPyyS2twdU8e4nD?= =?us-ascii?Q?5oW/JsW2qt7IBO5btrMGQOrUVLOtPUc0ErFRYu6QHgimqrp0Hud4cs1zBo1u?= =?us-ascii?Q?itOnpnCwk7aDBQycFKHbTnF3KQH4tllc/n0UQLdqYG45u5eTB9KrWQjrxg//?= =?us-ascii?Q?6mYNU8jP2yN3gMuSyaD00BqTsEhkH8U2f9XwQW0AWQUXJIsVRUoW7ZLnD6TY?= =?us-ascii?Q?L+Foq9BGI4mZeWF5qepbTqx8HSapi5P6olLrs5GQXylrVUdLJk6Af53flZqA?= =?us-ascii?Q?biwg2zJyST/Cr8Er+DGgZ4VO4EJd6Vc+GxWEuJ5f0dCy1Bo+sLEbuLnhco//?= =?us-ascii?Q?+3dk8vt6lSpozD6Jk69vmljTicvisAXUumwUhY58Dv9p9T5NQUJgDWVhnGtj?= =?us-ascii?Q?tzbUhmeyv2bda5MqEzWx7XMXO0Ox1iTn87eUUTqEXIdfWJQMwmunxY7Waef2?= =?us-ascii?Q?gDdNAnG2x4QP9UoaFis7hgvqMGDw3mEsHusJZp7Un+Q+68LteDTEZhrNVQJy?= =?us-ascii?Q?f1UeI8jelzud7yd/G8LTRyvY0C9o9wz5FQHi4RkhJT3UYATjNZNkKFj+rK1q?= =?us-ascii?Q?PNuhzFEGpZOLr1HkzOSoFWNeg7WFC+aoXTpWgIcr/T1yM+qR+6bGzg3Dn9fa?= =?us-ascii?Q?c94SOoGUNlNzDGspFoT7dgAMIup9/63mjPG+RFX2w5o4G3nQXSoSjGIxWj9O?= =?us-ascii?Q?f8gtysU0Q=3D?= X-Forefront-PRVS: 03319F6FEF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39450400003)(39410400002)(39850400002)(39840400002)(42186005)(2361001)(2351001)(53416004)(5660300001)(36756003)(305945005)(50226002)(5003940100001)(50466002)(48376002)(6116002)(3846002)(5009440100003)(6506006)(6486002)(50986999)(8676002)(81166006)(4326008)(6666003)(25786009)(42882006)(47776003)(66066001)(110136004)(107886003)(72206003)(33646002)(7736002)(478600001)(2906002)(6512007)(6916009)(38730400002)(189998001)(53936002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3466; H:PBHAGAVATULA-LT.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3466; 23:SgfrxwAFNynxMXMHz/7BNeTpDxBNnDJP54P8N5VpU?= =?us-ascii?Q?nwFNwQSastP75Db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pWoaOWCZjDJwFPl3teqq4mgYDdUTe59+jxFMVK6aioofXxAaK6mK+QMW+YTQeMBLg0k4MQar8Dc+XEXxYh+jWbBrO8aiWupSn1cEAst6CmnfrAtiV6qh72ZpOb8RAkwNYjsa1RzJ+3X7lV7MCD0PduTw2wsDsohVLhCNvsXkCaeiCCPNzBxLIgy/kQpB5ajb1NhXPl+rSVi7eXwbKzcgYY/UEvJSwOT3QFTmu3jZgT3rH91Uyfkk23dDgMszEBK5e66b98IdhWlxvsfLQ7xU4PMnZMfVDZcpBkYn/F09YgPHdI4c56SWsIlpe4jx5A/QpfWc/moJL; 24:J8Ee2NJlM81amOyKcy765+w7hvJcPNHd2Zn0KSyEDc9zWVMsNoYmPkr/Fh+n1ZZWFVxAjDWghLtbvVjsvdJejOS8clpdXGp/vewxANwwtzI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3466; 7:EbGrRp+k/N9homqXd5Hr2hfQIq6Is4UiKlkxFdXfmysYbdvTP+CyjSM5gCcSagsU+TXAxWX0TB3tZqrNfa/cW+P9vfliTlPzSwZvGlwnNadGrlSDyfVT0i7kQD4g3cZHVbkyMWJi0LP93yIe/mnfIV2HjScvMdWvsym5vLUotNtbEfoJotnYP1Kvx54ljIrsDZE0Go/MDed/w+r5pQcrSXqQRFwfjR1/v9E0cIsBD8OUIeubsH1FveIBuLPEuyMs/u0khFf005Kvnba0hQ0+rDOexK9+df9mZ71N8oYlb4A+q5/MyG0J1UuqtApkonsV8HXegJVPYDaL23DZ5cfeNg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2017 10:34:30.3191 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3466 Subject: [dpdk-dev] [PATCH] ethdev: fix ethdev start return value 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: Wed, 07 Jun 2017 10:34:34 -0000 From: Pavan Nikhilesh Bhagavatula If ethdev has already started it should return -EBUSY instead of 0 when rte_eth_dev_start is called. Fixes: af75078fece3 ("first public release") Signed-off-by: Pavan Nikhilesh --- lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index d257406..00f1a8c 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -909,7 +909,7 @@ rte_eth_dev_start(uint8_t port_id) RTE_PMD_DEBUG_TRACE("Device with port_id=%" PRIu8 " already started\n", port_id); - return 0; + return -EBUSY; } diag = (*dev->dev_ops->dev_start)(dev); -- 2.7.4