From: Jiayu Hu Date: Fri, 28 Apr 2017 01:32:50 +0000 (+0800) Subject: app/testpmd: fix exit without freeing resources X-Git-Tag: spdx-start~3315 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0de738cfc1489d99509640a90cb7cb0629347cb5;p=dpdk.git 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 --- 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 {