ipc: end multiprocess thread during cleanup
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 13 Nov 2021 17:22:54 +0000 (09:22 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 11 Feb 2022 18:49:22 +0000 (19:49 +0100)
commit6e858b4d9244cf53505589673755ab18ac2a4a83
tree295b2eed7c5d8eae7726e2e4c94eabdfd1b943b7
parent5f4eb82f3c73d3bd192ad4eb3b448a07a6810a7e
ipc: end multiprocess thread during cleanup

When rte_eal_cleanup is called, all control threads should exit.
For the mp thread, this best handled by closing the mp_socket
and letting the thread see that.

This also fixes potential problems where the mp_socket gets
another hard error, and the thread runs away repeating itself
by reading the same error.

Fixes: 85d6815fa6d0 ("eal: close multi-process socket during cleanup")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/eal/common/eal_common_proc.c