From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ethdev: fix corrupted device info in configure Date: Thu, 10 May 2018 00:50:37 +0200 Message-ID: <2455076.tMWrylkWj2@xps> References: <20180509221649.129690-1-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, remy.horton@intel.com To: Ferruh Yigit Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 65AE21B799 for ; Thu, 10 May 2018 00:50:40 +0200 (CEST) In-Reply-To: <20180509221649.129690-1-ferruh.yigit@intel.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" 10/05/2018 00:16, Ferruh Yigit: > Calling dev_infos_get() devops directly in rte_eth_dev_configure cause > random values in uninitialized fields because devops doesn't reset the > dev_info structure. > > Call rte_eth_dev_info_get() API instead which memset the struct. > > Also remove duplicated dev_infos_get existence check. > > Fixes: 3be82f5cc5e3 ("ethdev: support PMD-tuned Tx/Rx parameters") > Cc: remy.horton@intel.com > > Signed-off-by: Ferruh Yigit Acked-by: Thomas Monjalon