From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id A60D11B38E; Thu, 18 Jan 2018 18:01:17 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2D43520E20; Thu, 18 Jan 2018 12:01:17 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 18 Jan 2018 12:01:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=A9tH7Bm0oIPm2xDyrIsa28jBPJ TeZAFJKEUME3LStac=; b=Iu34tj+ar7zSdtHTzeA0bMN786fXKX64P/gDg4w67g pjJ8erbZWp+Uj5eQeiFqfDuKdBeIV083RQCMu7nwQREpdejsNpQsqzEw0+TlX9vw xeAPS2CXZsC6gz64huc/1kMd3w7ojL6Iom4UCQ410udnG9QOJmDZ+FU/Qf+Zy7tJ 4= 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-sender:x-me-sender:x-sasl-enc; s=fm1; bh=A9tH7B m0oIPm2xDyrIsa28jBPJTeZAFJKEUME3LStac=; b=m3KkDJq5PHId+Srl5MIrjG DRlAWPvwQEHuwh0YlMQj0Qv0rsyHn1611tTxiRxo+1IClM7oQC1KEqJv9U8g+m7W 5zXL8SPsGqVW9ECQRy2DP0Ri8nDbLrSsaTo5rLdg/t1BhgxFmTic2/VJQDNTQ9ts vqzTC2blCiXH3JWupJj/rSUMQnc4hOHf5I9SSZQ+GgkIFJ9RCXlwWCpQ1ec3qpAI zUbSZoju20Ne6NMoMQPm3mCcDIFrMq1WYXJNAS9tnkm3wJFaYSXvbKWYwREtDvwK n9AaWyogO8x6rkXLtwWHNB7Kfc/+p1vcqV0sz1cTNIL1AL8AF013DB8GWbwZL1TA == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id D33B07E3DF; Thu, 18 Jan 2018 12:01:16 -0500 (EST) From: Thomas Monjalon To: Matan Azrad Cc: Gaetan Rivet , Jingjing Wu , dev@dpdk.org, Neil Horman , Bruce Richardson , Konstantin Ananyev , stable@dpdk.org Date: Thu, 18 Jan 2018 18:00:43 +0100 Message-ID: <1997166.TLSYLWaGZv@xps> In-Reply-To: <1516293317-30748-3-git-send-email-matan@mellanox.com> References: <1515318351-4756-1-git-send-email-matan@mellanox.com> <1516293317-30748-1-git-send-email-matan@mellanox.com> <1516293317-30748-3-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH v3 2/7] ethdev: fix used portid allocation 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: , X-List-Received-Date: Thu, 18 Jan 2018 17:01:17 -0000 18/01/2018 17:35, Matan Azrad: > rte_eth_dev_find_free_port() found a free port by state checking. > The state field are in local process memory, so other DPDK processes > may get the same port ID because their local states may be different. > > Replace the state checking by the ethdev port name checking, > so, if the name is an empty string the port ID will be detected as > unused. > > Fixes: d948f596fee2 ("ethdev: fix port data mismatched in multiple process model") > Cc: stable@dpdk.org > > Suggested-by: Konstantin Ananyev > Signed-off-by: Matan Azrad Acked-by: Thomas Monjalon