app/testpmd: fix exit without freeing resources
authorJiayu Hu <jiayu.hu@intel.com>
Fri, 28 Apr 2017 01:32:50 +0000 (09:32 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 13:40:08 +0000 (15:40 +0200)
commit0de738cfc1489d99509640a90cb7cb0629347cb5
tree5eb97fc4e52bb70b9879eed418e0a34f704c620c
parent3ab64341daf8bae485a7e27c68f1dd80c7fd5130
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 <jiayu.hu@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
app/test-pmd/testpmd.c