From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: Re: [PATCH v2 02/11] net/failsafe: fix sub-device visibility Date: Thu, 10 May 2018 12:55:14 +0300 Message-ID: <421f9aec-029c-7bb1-72fb-aa7b4b52250b@solarflare.com> References: <20180509094337.26112-1-thomas@monjalon.net> <20180509224313.27289-1-thomas@monjalon.net> <20180509224313.27289-3-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit To: Thomas Monjalon , Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id CD7BE1BA3D for ; Thu, 10 May 2018 11:55:23 +0200 (CEST) In-Reply-To: <20180509224313.27289-3-thomas@monjalon.net> Content-Language: en-GB List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 05/10/2018 01:43 AM, Thomas Monjalon wrote: > The iterator function rte_eth_find_next_owned_by(), used by the > iterator macro RTE_ETH_FOREACH_DEV_OWNED_BY, are ignoring the devices > which are neither ATTACHED nor REMOVED. Thus sub-devices, having > the state DEFERRED, cannot be seen with the ethdev iterator. > The state RTE_ETH_DEV_DEFERRED can be replaced by > RTE_ETH_DEV_ATTACHED + owner. > > Fixes: dcd0c9c32b8d ("net/failsafe: use ownership mechanism for slaves") > Cc: stable@dpdk.org > > Signed-off-by: Thomas Monjalon > Acked-by: Matan Azrad > Acked-by: Gaetan Rivet Reviewed-by: Andrew Rybchenko