app/testpmd: stop forwarding on exit

Stop forwarding on exit whether all ports are started or not.

Fixes: ce8d561418 ("app/testpmd: add port configuration settings")

Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Bernard Iremonger 2016-06-14 16:35:42 +01:00 committed by Thomas Monjalon
parent 1e1d6bdd6d
commit d76c19309a

View File

@ -1089,10 +1089,6 @@ stop_packet_forwarding(void)
#endif
static const char *acc_stats_border = "+++++++++++++++";
if (all_ports_started() == 0) {
printf("Not all ports were started\n");
return;
}
if (test_done) {
printf("Packet forwarding not started\n");
return;