From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] eal: close MP socket during cleanup Date: Wed, 19 Dec 2018 09:46:28 +0100 Message-ID: <3200108.0fENqxW6u2@xps> References: <20181219074107.10084-1-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: anatoly.burakov@intel.com, dev@dpdk.org, ferruh.yigit@intel.com, stable@dpdk.org To: Qi Zhang Return-path: In-Reply-To: <20181219074107.10084-1-qi.z.zhang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 19/12/2018 08:41, Qi Zhang: > 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_fini. > This function will be called by rte_eal_cleanup and it will close the > mp socket and delete the mp_socket* file. Why not call it rte_mp_channel_cleanup, keeping the same wording? [...] > --- a/lib/librte_eal/linuxapp/eal/eal.c > +++ b/lib/librte_eal/linuxapp/eal/eal.c > @@ -1229,6 +1229,7 @@ rte_eal_cleanup(void) > if (rte_eal_process_type() == RTE_PROC_PRIMARY) > rte_memseg_walk(mark_freeable, NULL); > rte_service_finalize(); > + rte_mp_channel_fini(); > return 0; > } Should be called in bsdapp/eal?