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: af75078fec ("first public release")
Cc: stable@dpdk.org

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
This commit is contained in:
Jiayu Hu 2017-04-28 09:32:50 +08:00 committed by Thomas Monjalon
parent 3ab64341da
commit 0de738cfc1

View File

@ -2278,6 +2278,7 @@ main(int argc, char** argv)
start_packet_forwarding(0);
}
prompt();
pmd_test_exit();
} else
#endif
{