From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] eal: close MP socket during cleanup Date: Fri, 21 Dec 2018 01:18:30 +0100 Message-ID: <3702602.Ruh3347ZEi@xps> References: <20181219074107.10084-1-qi.z.zhang@intel.com> <20181220125114.13346-1-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, anatoly.burakov@intel.com, ferruh.yigit@intel.com, stable@dpdk.org To: Qi Zhang Return-path: In-Reply-To: <20181220125114.13346-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" 20/12/2018 13:51, 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_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 [...] > --- a/lib/librte_eal/common/eal_private.h > +++ b/lib/librte_eal/common/eal_private.h > /** > + * Primary/secondary communication cleanup. > + */ > + > +void rte_mp_channel_cleanup(void); extra blank line above Applied with minor change, thanks