From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 58E7EA0579; Thu, 8 Apr 2021 15:09:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45000140FB9; Thu, 8 Apr 2021 15:09:25 +0200 (CEST) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mails.dpdk.org (Postfix) with ESMTP id BD28140138 for ; Thu, 8 Apr 2021 15:09:23 +0200 (CEST) Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGM3x6HP0z19Krn; Thu, 8 Apr 2021 21:07:09 +0800 (CST) Received: from [10.67.103.128] (10.67.103.128) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 21:09:16 +0800 To: David Marchand CC: dev , "Yigit, Ferruh" , "Bruce Richardson" , Thomas Monjalon References: <1617877043-11025-1-git-send-email-humin29@huawei.com> From: "Min Hu (Connor)" Message-ID: <6ffcacd6-b14e-9628-6953-f64549e36792@huawei.com> Date: Thu, 8 Apr 2021 21:09:17 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.128] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH] examples/helloworld: add eal clean up to the example X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 在 2021/4/8 19:21, David Marchand 写道: > On Thu, Apr 8, 2021 at 12:17 PM Min Hu (Connor) wrote: >> >> From: Chengchang Tang >> >> 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. >