From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E481A0597; Thu, 9 Apr 2020 10:44:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0F97B1C1D6; Thu, 9 Apr 2020 10:44:27 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 281191C1CA for ; Thu, 9 Apr 2020 10:44:24 +0200 (CEST) IronPort-SDR: O0tV9XiYSpnhXPzxTusWtjqY1bgVLsQcas7wK77rOj6PsyVe+zRSJpYk/R0poQOBWpXFbRLFmU Ek3guaYLnM+A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2020 01:44:24 -0700 IronPort-SDR: 6dGma1kLxXhR5k0dsmFJXMK/7/HyQCbyq8e1cxW2HsGZKTXNwecADsYK0owY67/hUehmqiGHOn IM+eNrayhKnA== X-IronPort-AV: E=Sophos;i="5.72,362,1580803200"; d="scan'208";a="425437912" Received: from dhunt5-mobl5.ger.corp.intel.com (HELO [10.252.8.214]) ([10.252.8.214]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2020 01:44:23 -0700 To: Anatoly Burakov , dev@dpdk.org Cc: reshma.pattan@intel.com References: <854770a880777e7ad200481294a7aa5ac9a45f2d.1586361368.git.anatoly.burakov@intel.com> From: "Hunt, David" Message-ID: Date: Thu, 9 Apr 2020 09:44:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 2/2] l3fwd-power: implement proper shutdown handling X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Hi Anatoly, On 8/4/2020 4:56 PM, Anatoly Burakov wrote: > Currently, shutdown for l3fwd-power application is all over the place > and may or may not happen either in the signal handler or in the main() > function. Fix this so that the signal handler will only set the exit > variable, thereby allowing all of the loops to end properly and proceed > to deinitialize everything. > > Signed-off-by: Anatoly Burakov > --- > examples/l3fwd-power/main.c | 74 ++++++++++++++++++++----------------- > 1 file changed, 40 insertions(+), 34 deletions(-) > Acked-by: David Hunt