[dpdk-dev] [PATCH] examples/helloworld: add eal clean up to the example
Min Hu (Connor)
humin29 at huawei.com
Wed Apr 14 04:12:47 CEST 2021
在 2021/4/8 21:09, Min Hu (Connor) 写道:
>
>
> 在 2021/4/8 19:21, David Marchand 写道:
>> On Thu, Apr 8, 2021 at 12:17 PM Min Hu (Connor) <humin29 at huawei.com>
>> wrote:
>>>
>>> From: Chengchang Tang <tangchengchang at huawei.com>
>>>
>>> According to the programming guide, the rte_eal_init should be used
>>> pairs
>>> with rte_eal_cleanup.
>>>
>>> So, we should add the use of clean up to the hello world example to
>>> encourage new users of DPDK to use it.
>>>
>>> Fixes: af75078fece3 ("first public release")
>>
>> rte_eal_cleanup() was introduced with aec9c13c5257 ("eal: add function
>> to release internal resources") from v18.02.
>>
>> Other examples probably need fixes too.
>> $ git grep -l rte_eal_init examples/ |xargs grep -L rte_eal_cleanup |wc
>> 52 52 1623
>>
> Thanks David,
> I will fix other examples in next patches.
>>
Hi, David and all,
I have sent one set of patches to fix it, the headline is
"[PATCH 00/45] add eal clean up to the example"
Please review it, thanks.
> .
More information about the dev
mailing list