From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67C4EA04B1; Wed, 23 Sep 2020 23:06:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CFD681DB10; Wed, 23 Sep 2020 23:06:54 +0200 (CEST) Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) by dpdk.org (Postfix) with ESMTP id 9B42B1DA33 for ; Wed, 23 Sep 2020 23:06:52 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 23FD35803CE; Wed, 23 Sep 2020 17:06:52 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 23 Sep 2020 17:06:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= kMY0l/xnvW7V5kPMtBTfWTtd+c0g9zWqlB2rShwj5+E=; b=mnZu7xwfyOpWiYEM eCUI1RapTFiE3+qWBfMRkEyvtC27EDXa/dSujncSmrs3PHOv1N2xf9Fk0fzaInVo yeXkjbKyRWuJa4W/er/ERbHuS7blre5mjWwKs5YmSBULg9FC7YBKpwr8a2uPCm50 xPFF327zXQpVCOeq+hv7OWrJagEnRmG2oaa3PYLoyjpCeJR9eT0z8DUINUBdkCRi so040lNnacN0ZsTQ8wKuqmpeCw06E/dYg1T77iNZHCy1L0cKPT0QI3jTqbuz1RW2 8ixmhFzrpBJoYKVEhXNsdD3ckl7Nw8xdO+uaPjEwN3e1ECzV0LPAtwlLJ6lE3nVJ hrAl+w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=kMY0l/xnvW7V5kPMtBTfWTtd+c0g9zWqlB2rShwj5 +E=; b=lsGHufjErYJz+LKWtC08nrfa/Z3v2QpDojAs97mLMOt7KOsLWdGyoDvGD 1kwUOSGVLh9b6bRvCcENkurorrjD2jMuPuiSVcI6FElpVpQay+E/UQ9tWcPiKGMs iauA7+FbfU5ZKcrANwKvj1f4vH6Djs+O2YeGtekTsJrxW9GvxjVbX8nxLhFxHGuS ewjRS8MEpByEIXFrXX0BzTBjGdcNVlCoLJ1qMaKVApGMUEAmfQ6D/H6VW4vY5GVh nAO8NvZqUIc2xgZyOoD2PaLumji6F9xJ6ShycoGhRXjCrVd5RQJTfEhloPldol7I YhWOcF7bg57sh8ps7aHg4J2I6f4fg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeigdduheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5477F3064682; Wed, 23 Sep 2020 17:06:43 -0400 (EDT) From: Thomas Monjalon To: Stephen Hemminger Cc: Ferruh Yigit , dev@dpdk.org, arybchenko@solarflare.com, "John W. Linville" , Ciara Loftus , Qi Zhang , Shepard Siegel , Ed Czeck , John Miller , Igor Russkikh , Pavel Belous , Steven Webster , Matt Peters , Somalapuram Amaranath , Rasesh Mody , Shahed Shaikh , Ajit Khaparde , Somnath Kotur , Chas Williams , "Wei Hu (Xavier)" , Rahul Lakkireddy , Hemant Agrawal , Sachin Saxena , Wei Zhao , Jeff Guo , Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin , Igor Chauskin , Gagandeep Singh , John Daley , Hyong Youb Kim , Gaetan Rivet , Xiao Wang , Ziyang Xuan , Xiaoyun Wang , Guoyang Zhou , "Min Hu (Connor)" , Yisen Zhuang , Beilei Xing , Jingjing Wu , Qiming Yang , Alfredo Cardigliano , Rosen Xu , Shijith Thotton , Srisivasubramanian Srinivasan , Jakub Grajciar , Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko , Zyta Szpak , Liron Himi , Stephen Hemminger , "K. Y. Srinivasan" , Haiyang Zhang , Long Li , Martin Spinler , Heinrich Kuhn , Harman Kalra , Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K , Akhil Goyal , Jasvinder Singh , Cristian Dumitrescu , Keith Wiles , Maciej Czekaj , Maxime Coquelin , Chenbo Xia , Zhihong Wang , Yong Wang Date: Wed, 23 Sep 2020 23:06:42 +0200 Message-ID: <3329768.rLCo6hCP44@thomas> In-Reply-To: <20200923140258.70ee25e9@hermes.lan> References: <20200913220711.3768597-1-thomas@monjalon.net> <2789130.svnmZjVqCQ@thomas> <20200923140258.70ee25e9@hermes.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH 02/20] ethdev: allow drivers to return error on close 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 23/09/2020 23:02, Stephen Hemminger: > On Wed, 23 Sep 2020 22:53:46 +0200 > Thomas Monjalon wrote: > > 23/09/2020 18:41, Ferruh Yigit: > > > On 9/13/2020 11:06 PM, Thomas Monjalon wrote: > > > > The device operation .dev_close was returning void. > > > > This driver interface is changed to return an int. > > > > > > > > Note that the API rte_eth_dev_close() is still returning void, > > > > although a deprecation notice is pending to change it as well. > > > > > > Why not update the 'rte_eth_dev_close()' in this patch? After the > > > updates below it should be easier. > > > > Yes it is a step in the right direction. > > Changing the API means adding some error checks in every apps. > > The reason for not doing is that I did not commit for this task, > > and I am not the author of the deprecation notice. > > We can discuss how to follow up once this series is merged. > > Not sure what application can really do if dev_close fails other than call rte_exit()? At least, it can show a message to the user.