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:
parent
1e1d6bdd6d
commit
d76c19309a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user