summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiayu Hu <jiayu.hu@intel.com>2017-04-28 09:32:50 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-05-01 15:40:08 +0200
commit0de738cfc1489d99509640a90cb7cb0629347cb5 (patch)
tree5eb97fc4e52bb70b9879eed418e0a34f704c620c
parent3ab64341daf8bae485a7e27c68f1dd80c7fd5130 (diff)
downloaddpdk-stable-0de738cfc1489d99509640a90cb7cb0629347cb5.zip
dpdk-stable-0de738cfc1489d99509640a90cb7cb0629347cb5.tar.gz
dpdk-stable-0de738cfc1489d99509640a90cb7cb0629347cb5.tar.xz
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>
-rw-r--r--app/test-pmd/testpmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 0c6a50e..36a4701 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
{