From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet Subject: Re: [PATCH v2 5/6] net/failsafe: use ownership mechanism to own ports Date: Mon, 8 Jan 2018 11:32:40 +0100 Message-ID: <20180108103240.yvtwyvi2lfpeakeu@bidouze.vm.6wind.com> References: <1511870281-15282-1-git-send-email-matan@mellanox.com> <1515318351-4756-1-git-send-email-matan@mellanox.com> <1515318351-4756-6-git-send-email-matan@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Thomas Monjalon , Jingjing Wu , dev@dpdk.org, Neil Horman , Bruce Richardson , Konstantin Ananyev To: Matan Azrad Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 5012A1B16A for ; Mon, 8 Jan 2018 11:32:56 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id b141so13222854wme.1 for ; Mon, 08 Jan 2018 02:32:56 -0800 (PST) Content-Disposition: inline In-Reply-To: <1515318351-4756-6-git-send-email-matan@mellanox.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" Hi Matan, Thanks for the patches. A remark however: On Sun, Jan 07, 2018 at 09:45:50AM +0000, Matan Azrad wrote: > Fail-safe PMD sub devices management is based on ethdev port mechanism. > So, the sub-devices management structures are exposed to other DPDK > entities which may use them in parallel to fail-safe PMD. > > Use the new port ownership mechanism to avoid multiple managments of > fail-safe PMD sub-devices. > I think your implementation does not work with several fail-safe instances, have you tested this configuration? It should be possible for a user to create any number of fail-safe instances. The minimum would be to allow for multiple fail-safe side-by-side, but ideally it should also support a recursive configuration: +-----------+ |fail-safe | | | | | +-+ +--+ | | | | | +-----------+ | | | +-------v----+ +-----v-----+ |fail-safe | | | | | | | | | | | | | | | +-+ +-+ | | | +------------+ | +-----------+ | | +-----v-----+ +-----v-----+ | | | | | | | | | | | | | | | | | | | | +-----------+ +-----------+ If I am not mistaken on this, then you need to generate different owner-ids for each fail-safe instances. I suggest using the full fail-safe instance name, as they are already assured to be different from each other by the EAL, and you thus won't need to generate IDs on the fly, as well as declare a global owner-id prefix. -- Gaëtan Rivet 6WIND