From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 848961B885 for ; Tue, 15 May 2018 15:49:27 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id t11-v6so1198368wmt.0 for ; Tue, 15 May 2018 06:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EXRlY4jhWQLJMh+pKnx2LdXCa6buVwMT572O/9txhCE=; b=SaEp1WD73U/ciPsiaP9xTanbBfaeuJUlNSIaYXAvvrbpT7K5xXAh0Y8fg1vR60ii/F WkW2lOgcXLE7pnGmFKr40dNIr212jlgmBbx1PoSnILWcBpt36B+N6zRRGduKeE4ADVdm AFJaCMAqGG0yNmJVMGPwjKdEkYL3st0VdlxBMbP/wz1phsH8HZZHcXjrAZxa5yQ5SaBk jg1Q7lTTk4xKYCdeXgukd5plfT0YLoRyKj3Tf8O5OEyBloGNEEXN5Gxzfwn5p7bfWIWA 2n+wClQ96OAb6LEsY14x2JEQlz6coia8QmDJjap/3AL9m+c1m0z6gadHCfawx5Lekyir bHGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EXRlY4jhWQLJMh+pKnx2LdXCa6buVwMT572O/9txhCE=; b=gGmTZRNHL6d+vadNSvNw/xAaOzX5J3g2EWnLD8VHZkGfKD0OUHgH7HrBBTITvBz0L4 DJ0jXlrjyiZFVHBsaDycmUPzDJqDji5uTrNihtGRs+cXgfqX8LAJ477GtPXeiLgxiJwJ 9A8JpQTY0t7D9cfuWyCLK7UAg4BCO64xKu2JOXupvnRbM5T/H9FQNi6rGiF+cHjjsGqo U75sU9ClW1Xk92jEnRdgsT6aMmfOewtIIyUGbQOeHlL2iy0NGKsyq8m8cWWnYqXo7b3s sUa2qfBkyakbkxY9FOjqXwSso/j2N/MV3vszVrxWMECx6kKj0QrnWAgxr+dCUo+XdVZ7 Js7g== X-Gm-Message-State: ALKqPwdoyF3L2pYiPBWsDdtNkLd84K3Go9zx6KwiHKme1v+lE0Npun99 D2ZXJhtl6FqktbrjxpppkRWzZv/Oipw= X-Google-Smtp-Source: AB8JxZpf7ksC+Aj/1FEEfXpdVte3cnAQWhXJ5XaK//De1aMlmCFebtugXIGGqDT1WW8cmnwFm5MaCA== X-Received: by 2002:a1c:e384:: with SMTP id a126-v6mr8988996wmh.93.1526392167267; Tue, 15 May 2018 06:49:27 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id b133-v6sm650438wmh.12.2018.05.15.06.49.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:49:26 -0700 (PDT) From: luca.boccassi@gmail.com To: Thomas Monjalon Cc: Matan Azrad , Gaetan Rivet , Andrew Rybchenko , Stephen Hemminger , dpdk stable Date: Tue, 15 May 2018 14:47:14 +0100 Message-Id: <20180515134731.9337-63-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/failsafe: fix sub-device visibility' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:49:27 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 8012d832fd1e7d5c79b58ee2c98e318601996122 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Fri, 11 May 2018 01:58:27 +0200 Subject: [PATCH] net/failsafe: fix sub-device visibility [ upstream commit 195814264037593031fbec73d3b989c71e149768 ] 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") Signed-off-by: Thomas Monjalon Acked-by: Matan Azrad Acked-by: Gaetan Rivet Reviewed-by: Andrew Rybchenko Reviewed-by: Stephen Hemminger --- drivers/net/failsafe/failsafe_eal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/failsafe/failsafe_eal.c b/drivers/net/failsafe/failsafe_eal.c index c3d673125..e0fd60598 100644 --- a/drivers/net/failsafe/failsafe_eal.c +++ b/drivers/net/failsafe/failsafe_eal.c @@ -98,7 +98,6 @@ fs_bus_init(struct rte_eth_dev *dev) SUB_ID(sdev) = i; sdev->fs_dev = dev; sdev->dev = ETH(sdev)->device; - ETH(sdev)->state = RTE_ETH_DEV_DEFERRED; sdev->state = DEV_PROBED; } return 0; -- 2.14.2