From: Ferruh Yigit Subject: Re: [PATCH] ethdev: fix corrupted device info in configure Date: Thu, 10 May 2018 00:02:50 +0100 Message-ID: <83ac240f-6a3f-2785-0ed2-2f31959c0475@intel.com> References: <20180509221649.129690-1-ferruh.yigit@intel.com> <2455076.tMWrylkWj2@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, remy.horton@intel.com To: Thomas Monjalon Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 1AB4C1B6C4 for ; Thu, 10 May 2018 01:02:52 +0200 (CEST) In-Reply-To: <2455076.tMWrylkWj2@xps> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 5/9/2018 11:50 PM, Thomas Monjalon wrote: > 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 Applied to dpdk-next-net/master, thanks.