From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ethdev: keep port_id unchanged if obtaining by name failed Date: Fri, 09 Jun 2017 18:34:44 +0200 Message-ID: <2063900.e1OC17koPI@xps> References: <1495109980-3236-1-git-send-email-i.maximets@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Heetae Ahn , Ravi Kerur To: Ilya Maximets Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id BBDE6397D for ; Fri, 9 Jun 2017 18:34:45 +0200 (CEST) In-Reply-To: <1495109980-3236-1-git-send-email-i.maximets@samsung.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 18/05/2017 14:19, Ilya Maximets: > Currently, 'rte_eth_dev_get_port_by_name' changes transmitted > 'port_id' unconditionally. This is undocumented and misleading > behaviour as user may expect unchanged value in case of error. > > Otherwise, there is no sense having both return value and > a pointer in the function. > > Fixes: 9c5b8d8b9feb ("ethdev: clean port id retrieval when attaching") > > Signed-off-by: Ilya Maximets Applied, thanks