From 0de738cfc1489d99509640a90cb7cb0629347cb5 Mon Sep 17 00:00:00 2001 From: Jiayu Hu Date: Fri, 28 Apr 2017 09:32:50 +0800 Subject: [PATCH] app/testpmd: fix exit without freeing resources When testpmd exits, it frees the acquired resources (e.g. stop ports). However, when we terminate it by Ctrl-d, testpmd exits 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 --- 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 0c6a50ea38..36a4701627 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2278,6 +2278,7 @@ main(int argc, char** argv) start_packet_forwarding(0); } prompt(); + pmd_test_exit(); } else #endif { -- 2.20.1