eal: close multi-process socket during cleanup
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 20 Dec 2018 12:51:14 +0000 (20:51 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 21 Dec 2018 00:15:41 +0000 (01:15 +0100)
commit85d6815fa6d071afc323c3a0bdfe2d0769ec33d0
tree5117fb60ac291a24b2ba4754298f6d103be3bce9
parent9d65053761ae20e81e651ac0f0a76649e142e8e5
eal: close multi-process socket during cleanup

When secondary process quit, the mp_socket* file still exist, that
cause rte_mp_request_sync fail when try to send message on a floating
socket.

The patch fix the issue by introduce a function rte_mp_channel_cleanup.
This function will be called by rte_eal_cleanup and it will close the
mp socket and delete the mp_socket* file.

Fixes: bacaa2754017 ("eal: add channel for multi-process communication")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_proc.c
lib/librte_eal/common/eal_private.h
lib/librte_eal/linuxapp/eal/eal.c