From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 5804E8E91 for ; Mon, 28 Dec 2015 10:51:57 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 28 Dec 2015 01:51:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,490,1444719600"; d="scan'208";a="624684316" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 28 Dec 2015 01:51:46 -0800 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 28 Dec 2015 01:51:46 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 28 Dec 2015 01:51:46 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.57]) by shsmsx102.ccr.corp.intel.com ([169.254.2.133]) with mapi id 14.03.0248.002; Mon, 28 Dec 2015 17:51:44 +0800 From: "Wang, Zhihong" To: "Qiu, Michael" , "dev@dpdk.org" Thread-Topic: [PATCH v2 0/3] Handle SIGINT and SIGTERM in DPDK examples Thread-Index: AQHRPvhTsUysggR+u06bAaMtJqIGmp7gLFiA Date: Mon, 28 Dec 2015 09:51:43 +0000 Message-ID: <8F6C2BD409508844A0EFC19955BE09418631F4@SHSMSX103.ccr.corp.intel.com> References: <1451011032-83106-1-git-send-email-zhihong.wang@intel.com> <533710CFB86FA344BFBF2D6802E6028622F04C95@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <533710CFB86FA344BFBF2D6802E6028622F04C95@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYmVlYzQ1OTQtNzhiYi00NjFhLTg5OTYtM2Q4ZDM0NTFkZDVjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjQuMTAuMTkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZElwbW93SjV5UWVOV3kxRFZBSDNTZVZmRUkrOUNhcXcrQnMwc0ZNbUNJYz0ifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 0/3] Handle SIGINT and SIGTERM in DPDK examples X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Dec 2015 09:51:57 -0000 > -----Original Message----- > From: Qiu, Michael > Sent: Monday, December 28, 2015 12:18 PM > To: Wang, Zhihong ; dev@dpdk.org > Cc: Ananyev, Konstantin ; > stephen@networkplumber.org > Subject: Re: [PATCH v2 0/3] Handle SIGINT and SIGTERM in DPDK examples >=20 > On 2015/12/25 17:40, Wang, Zhihong wrote: > > This patch handles SIGINT and SIGTERM in testpmd, l2fwd, and l3fwd, mak= e > sure all ports are properly stopped and closed. > > For virtual ports, the stop and close function may deal with resource c= leanup, > such as socket files unlinking. > > > > -------------- > > Changes in v2: > > > > 1. Make sure graceful exit for all running phases > > > > 2. Make sure program exits with the right status > > > > Zhihong Wang (3): > > app/test-pmd: Handle SIGINT and SIGTERM in testpmd > > examples/l2fwd: Handle SIGINT and SIGTERM in l2fwd > > examples/l3fwd: Handle SIGINT and SIGTERM in l3fwd > > > > app/test-pmd/cmdline.c | 19 ++++++--- > > app/test-pmd/testpmd.c | 38 ++++++++++++++--- > > app/test-pmd/testpmd.h | 1 + > > examples/l2fwd/main.c | 60 +++++++++++++++++++++++++++ > > examples/l3fwd/main.c | 110 > ++++++++++++++++++++++++++++++++++++++++--------- > > 5 files changed, 196 insertions(+), 32 deletions(-) > > >=20 > Next time, you'd better not to top post for V2 :) Gotcha :) >=20 > Acked-by: Michael Qiu