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 EC58CA046B for ; Sat, 29 Jun 2019 21:30:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9B5024C8E; Sat, 29 Jun 2019 21:30:22 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id A976B37A8; Sat, 29 Jun 2019 21:30:18 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DBD222148D; Sat, 29 Jun 2019 15:30:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 29 Jun 2019 15:30:17 -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=mesmtp; bh=EXx4yFwScAt28w4HPNfOuSkNAHKwJMoVGNWSbyCmhtY=; b=R78nF0016D+o WhBGAcYKEiZiPb0WMMM0/XaGTFawCA2u+Vs/rhxFOz3M4d5CHc+Sh7IKN788193u 6wVc7x3daAxn016lI3DaAiTLXO3bUW8vPsa8uY78pnYf3XY53YkzfZ5ZFWDWC9Sm 5bOn2MgO+NRBGSsYo5DwDkl57XaWSkQ= 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=EXx4yFwScAt28w4HPNfOuSkNAHKwJMoVGNWSbyCmh tY=; b=aw3DPSE1QTjRkU57fylat57ugyiKu4jkLGDBPEVpN0WjnHCfbVxtHd4g2 X+nehZN+L8AXYeaWstmuOrOZFQzwfbDfNnP7GfSHClUw02kZ3Oq55bs8azTb0US5 VACL+AKk4A9e8OSW7LzwImB9Mplb+cDBPR8d7/PJZW7dJ2wnUzzBDRZ+mHbeVftv mM9lin4lwMSR+JsYjp1DaksA8eNOORYXduof3yH9BAmxPy10f7d2buE3la/t9lg5 ORFqlRQCRABrhFkT3ld5oGTP/UKtzWCLdJ/gGQShJsPqGjYjRPMSWwsEPf91xsWX 0K8P61gauOt0nWoRyefOxU8iKCU2A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvddvgddufeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt 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 5CF02380076; Sat, 29 Jun 2019 15:30:15 -0400 (EDT) From: Thomas Monjalon To: Ilya Maximets Cc: dev@dpdk.org, David Marchand , Anatoly Burakov , Jan Blunck , Qi Zhang , Kevin Traynor , dpdk stable , Gaetan Rivet Date: Sat, 29 Jun 2019 21:30:14 +0200 Message-ID: <2035115.EgepBik12h@xps> In-Reply-To: References: <20190606100228.19959-1-i.maximets@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] eal: fix positive error codes from probe/remove X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 07/06/2019 10:32, David Marchand: > On Thu, Jun 6, 2019 at 12:03 PM Ilya Maximets > wrote: > > > According to API, 'rte_dev_probe()' and 'rte_dev_remove()' must > > return 0 or negative error code. Bus code returns positive values > > if device wasn't recognized by any driver, so the result of > > 'bus->plug/unplug()' must be converted. 'local_dev_probe()' and > > 'local_dev_remove()' also has their internal API, so the conversion > > should be done there. > > > > Positive on remove means that device not found by driver. > > > > For backports, it is safer to add the check on > 0. > The patch looks good to me. > > Reviewed-by: David Marchand Applied, thanks