From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-stable] [PATCH v2] app/testpmd: fix exit without freeing resources X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 01:32:14 -0000 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 --- 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 { -- 2.7.4