From patchwork Fri Apr 28 01:32:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hu, Jiayu" X-Patchwork-Id: 23980 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id B2A2E2C18; Fri, 28 Apr 2017 03:32:15 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 252169E3; Fri, 28 Apr 2017 03:32:13 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2017 18:32:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,386,1488873600"; d="scan'208";a="850642363" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.128.234]) by FMSMGA003.fm.intel.com with ESMTP; 27 Apr 2017 18:32:09 -0700 From: Jiayu Hu To: dev@dpdk.org Cc: jingjing.wu@intel.com, stable@dpdk.org, jianfeng.tan@intel.com, Jiayu Hu Date: Fri, 28 Apr 2017 09:32:50 +0800 Message-Id: <1493343170-110462-1-git-send-email-jiayu.hu@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1493256770-15331-1-git-send-email-jiayu.hu@intel.com> References: <1493256770-15331-1-git-send-email-jiayu.hu@intel.com> Subject: [dpdk-dev] [PATCH v2] app/testpmd: fix exit without freeing resources 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" When testpmd exists, it frees the acquired resources (e.g. stop ports). However, when we terminate it by Ctrl-d, testpmd exists directly without releasing the resources. In this patch, we fix this exit issue. Fixes:af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Jiayu Hu Reviewed-by: Jianfeng Tan --- changes in v2: - Change title and add the bug release app/test-pmd/testpmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 3a57348..94cefc0 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2289,6 +2289,7 @@ main(int argc, char** argv) start_packet_forwarding(0); } prompt(); + pmd_test_exit(); } else #endif {