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

Ferruh Yigit ferruh.yigit at intel.com
Thu May 10 01:02:50 CEST 2018


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 at intel.com
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> 
> Acked-by: Thomas Monjalon <thomas at monjalon.net>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list