[PATCH v11 3/3] testpmd: cleanup cleanly from signal

Ferruh Yigit ferruh.yigit at amd.com
Tue Feb 7 15:49:15 CET 2023


On 2/3/2023 7:14 PM, Stephen Hemminger wrote:
> Do a clean shutdown of testpmd when a signal is received; instead of
> having testpmd kill itself.  This fixes the problem where a signal could
> be received in the middle of a PMD and then the signal handler would
> call PMD's close routine leading to locking problems.
> 
> The cmdline structure no longer needs to be global it can
> just be local to the prompt() function.
> 
> An added benefit is it gets rid of some Windows specific code.
> 
> Fixes: d9a191a00e81 ("app/testpmd: fix quitting in container")
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>

Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>


More information about the stable mailing list