From patchwork Thu Nov 11 08:49:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kumara Parameshwaran X-Patchwork-Id: 104172 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 61056A0548; Thu, 11 Nov 2021 09:49:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 536C440E2D; Thu, 11 Nov 2021 09:49:46 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id B3BE240E28 for ; Thu, 11 Nov 2021 09:49:44 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id r5so5301523pls.1 for ; Thu, 11 Nov 2021 00:49:44 -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=v6X2zyuYMCtLoq0TVCNDXcO8+uzIHj01xmkd4ZaPsJk=; b=hRiZheU4vX/qPaHJobVuRmTm1/GuIg9vLzcLLKuZ2uwmZcB+TntRRK8hTXbqgpiE6Z 2/5xn9+Xi+1bT8ekk4PA3Kl3lhMZlrrLn2fZJ+Nk91UZ2ET8TD1fwcA2/MciYODAt8LI hWxp+OIMI3DXsAS7txA2rQhRZTx+w0LpqcuXZqXph/2nfXyNiadLP7UUbzRwZQ6VqeWL +wMJpWDOxGkpVzbkdDc65TpJC9Znucb11Gw0gHm/xVYUDirZDDrZRyjp9tDdMf0uR87X 7tYHSTKHozxpRZnhsPv8sfsScNE6qytDRtgmjM0M7YNueOiTZmChUHS2VJ/0JhG5YcXe xgGg== 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=v6X2zyuYMCtLoq0TVCNDXcO8+uzIHj01xmkd4ZaPsJk=; b=6+fWO62PAL06whMkGfnMdOhap5WzofXJJii7bTWyIo2sVwnImBbuHDHEQLbyviDmeg jZuRNbWdibxURFjHdOd1msDedpV4GpsDT6rKy+v8uH0ljPhWqlHZ6rwbsauomNs1wAto 7fhZ5wHylTV1OscDOczKNeMss4TUAVYdieDmMAfsPAVY8uaSFDPYba/XSCsh5tlYw89R b7KIzstTtRfwej5jnx5Fk24tXSfrU1uHpBAb6ABugz09Zjf6zliM/utCbKMZapl9Is4y 7v6QAriB5ne/1py2sr/LJA8PLBEvQJZpMiGj/i67d9kN0lTBmQ9KqJznPM6AN1iRQWG1 jxhw== X-Gm-Message-State: AOAM531b7wfJJs91+swqKdI/jj9jKJmxrTgKIVROW1r3VzRk1IRbP0OW GlIY+/FBlgaeDHq3eWv/GZU= X-Google-Smtp-Source: ABdhPJxlYZmdaHKNgjWAIRYlLRUz87TatDOFhVIpUcW58hG+Y3puTudJ5SyTKSVtC056PtL7kHiY+w== X-Received: by 2002:a17:90b:4aca:: with SMTP id mh10mr6549176pjb.234.1636620583904; Thu, 11 Nov 2021 00:49:43 -0800 (PST) Received: from kparameshwa-a01.vmware.com.com ([106.51.25.41]) by smtp.googlemail.com with ESMTPSA id fs21sm7171449pjb.1.2021.11.11.00.49.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Nov 2021 00:49:43 -0800 (PST) From: Kumara Parameshwaran To: grive@u256.net Cc: dev@dpdk.org, Kumara Parameshwaran Subject: [PATCH] failsafe: Bug fix for the secondary process to support RX and TX Date: Thu, 11 Nov 2021 14:19:37 +0530 Message-Id: <20211111084937.65856-1-kumaraparamesh92@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 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. 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);