From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 35DA2A0548; Thu, 11 Nov 2021 13:45:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB1C740E2D; Thu, 11 Nov 2021 13:45:07 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 0D5D740E03 for ; Thu, 11 Nov 2021 13:45:05 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id g19so5509207pfb.8 for ; Thu, 11 Nov 2021 04:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x7TqX8Djc5ZyKZ41gDF7r39cCEfqBjhhvDceHmXdc0E=; b=WSmrLVMcTM6lgK0c+rilSvWkZpVnycEppXJFx4O5moQbt+9xBCbUwcHePs5vYNKTwd KM59ffMRe2l07+oH1TBe7JyOyn1xMXtY7KnHH11G1eckeHs5LwFH3iDAuNd0qlQzKMNQ Zn8JExydBJo+KesrzCoda8Ly9QZCNvJYkEAVJTtksGvf6mvr6xeW1z4rXiT+qjK1DYJU m8Y6MdAkZzeaYfMfnQmtaDh6BG9prUV1TFVYq6IWLpSqsS6BmHEP3EAWA+pCQY0a1xvf D2A7Bl+26jdnjHhNs6wsCFLA8gpzWj1E/jcnyXTyEsV/heV4ZTpmpFV0ubhMHC4IYdjM 5fAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x7TqX8Djc5ZyKZ41gDF7r39cCEfqBjhhvDceHmXdc0E=; b=BreFiOTDsr8glKkaX6vJazSrxF526AP0iQbTTbLrU+EvV5+avDotpR4DUHd+NqTIQG ogWRACzbOT42SXX4ZYp5qUqoNvUqTNUMKDjoqxcsGiUG327prV0276ofMK9Jb9kujz7u 4LQ647KoUulG18AZc8+WTAnMoeuBA43qiKypNu8AQbADtsfhFqtLxLD/VWd5hpIH+e60 PQOA6EOLB+cQGeDqugnVaE5oubDY1CTJVV66F+cEEIzq/KgB8rxsH5zCbkY8e4wggV2p NA3BVR8nLaJb0CAKApXAWJ6SBXufQ/dKmsOywxqYbJ0/LYGRHWBz38P1glnFdHMoxV0y xBsg== X-Gm-Message-State: AOAM531UJCxUGp/knHCvnYVMqiUefZAfTyQUlj/PxTz1pop+E5Sa7ivP kU65oWaL5+KBEfJYhg4F4qQ= X-Google-Smtp-Source: ABdhPJyVRG9HXdJ3wGc9AutVzViqhR/3/j98/IIBDMzSbHtWrFW++Qhk+Zy9s91NwfAdIXRUcJB2Tg== X-Received: by 2002:a63:7b56:: with SMTP id k22mr4432228pgn.7.1636634705125; Thu, 11 Nov 2021 04:45:05 -0800 (PST) Received: from kparameshwa-a01.vmware.com.com ([106.51.26.147]) by smtp.googlemail.com with ESMTPSA id h128sm3034558pfg.212.2021.11.11.04.45.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Nov 2021 04:45:04 -0800 (PST) From: Kumara Parameshwaran To: grive@u256.net Cc: dev@dpdk.org, Kumara Parameshwaran , qi.z.zhang@intel.com Subject: [PATCH] failsafe: Bug fix for the secondary process RX-TX support Date: Thu, 11 Nov 2021 18:14:58 +0530 Message-Id: <20211111124458.21248-1-kumaraparamesh92@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Remove the vdev args check for secondary process which prevents the secondary from attaching to the device created by the primary process via the hotplug framework. This check was removed for other vdevs but was missed for failsafe. Fixes: 4852aa8f6e21 ("drivers/net: enable hotplug on secondary process") Cc: qi.z.zhang@intel.com Signed-off-by: Kumara Parameshwaran --- drivers/net/failsafe/failsafe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/failsafe/failsafe.c b/drivers/net/failsafe/failsafe.c index ad6b43538e..3c754a5f66 100644 --- a/drivers/net/failsafe/failsafe.c +++ b/drivers/net/failsafe/failsafe.c @@ -340,8 +340,7 @@ rte_pmd_failsafe_probe(struct rte_vdev_device *vdev) INFO("Initializing " FAILSAFE_DRIVER_NAME " for %s", name); - if (rte_eal_process_type() == RTE_PROC_SECONDARY && - strlen(rte_vdev_device_args(vdev)) == 0) { + if (rte_eal_process_type() == RTE_PROC_SECONDARY) { eth_dev = rte_eth_dev_attach_secondary(name); if (!eth_dev) { ERROR("Failed to probe %s", name); -- 2.30.1 (Apple Git-130)