Re: [PATCH v5] testpmd: cleanup cleanly from signal

2022-11-10 Thread Stephen Hemminger
> > + stop_packet_forwarding(); > > force_quit() calls stop_packet_forwarding() if test_done is 0. > So, there is no difference in test_done == 0 case. > If test_done is not zero, stop_packet_forwarding() just logs > "Packet forwarding not started" and does nothing. So, the > differe

Re: [PATCH v5] testpmd: cleanup cleanly from signal

2022-11-09 Thread Andrew Rybchenko
On 11/9/22 20:29, Stephen Hemminger wrote: Do a clean shutdown of testpmd when a signal is received; instead of having testpmd kill itself. This fixes problem where a signal could be received in the middle of a PMD and then the signal handler would call PMD's close routine which could cause a dea