examples/l3fwd-power: implement proper shutdown
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 20 Apr 2020 17:56:52 +0000 (17:56 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Apr 2020 21:51:23 +0000 (23:51 +0200)
commit613ce6691c0d5ac0f99d7995f1e8e4ac86643882
tree3621f5e7df3cf1e81386ae2f088d096b1f994206
parenta163130bd6b466fd72bae1e97134089a20a8b148
examples/l3fwd-power: implement proper shutdown

Currently, shutdown for l3fwd-power application is all over the place
and may or may not happen either in the signal handler or in the main()
function. Fix this so that the signal handler will only set the exit
variable, thereby allowing all of the loops to end properly and proceed
to deinitialize everything.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Reshma Pattan <reshma.pattan@intel.com>
examples/l3fwd-power/main.c