[dpdk-dev] [PATCH] ethdev: fix corrupted device info in configure

Thomas Monjalon thomas at monjalon.net
Thu May 10 00:50:37 CEST 2018


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 at intel.com
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>

Acked-by: Thomas Monjalon <thomas at monjalon.net>





More information about the dev mailing list