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 172BEA0548; Thu, 11 Nov 2021 11:06:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DF9240E2D; Thu, 11 Nov 2021 11:06:29 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 8F17740E28 for ; Thu, 11 Nov 2021 11:06:28 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id u11so5413533plf.3 for ; Thu, 11 Nov 2021 02:06:28 -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=Crw6ExKO+y+FFJGUYqi0BM+P0Sdd9FnJ3EK0Znf/Ue2MCQ9XoyDTmYUxJJOMJpnTU+ NxvVhH1/hlcikGNg9wkQnuuBsvbZRI0eGxpv/9P5BPm7Gaf9BgSKE4rfJrHT75etrzYm i45C5ksTg4ukUJcLF+rSJyWEtHil4Lvn/R6gOHZMh7/lGq63kX2oBC+fIVr5mA/4ICYs ZjGlMJ15Xwd28E2ANfYfL77OwsuFCeDf5aYrP29OkoFyb4ViZfqGyczhZPcsPEEFJJxs 1jtItU65aGsc4g40dYUljxNzn00SvMjVYAH9hp1HS+4b8OiIX2WU8x39E8x1YfDU78Yc gD/Q== 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=V/gJ22jw8MFlcVvKQgeEx2K9jjuieljTaSIqADzPb7uDxPNuPodWML/gfKyvZvTTLn SfLgJ4/rlm/MCaHMkELxUy0sVU7N5l5P5EDMTJXVfIIJCAPnRDt5KYwFQdTF5qn0B8yk yseOxEIp0LQOf9ZENUKbsj7qM9VQYlwWeWZH0VptqqUOU2PC8D8XV17kjHLBv/IBPqRn pcJjAqAmHVX4/+SVLmL141lUUqDXCfS0eWYTFmyJigeSeK2n0Lec/IE29KVrcv2zqqcX KAwfsxuAdWt5CuLo/jtSvkleS0XhW7sYSAabbcikZS/zIS1SS9KIjNWmX5XPvdIV2YsW jlIA== X-Gm-Message-State: AOAM531oIEvQCa3xGTpxH7wOkLgflm1NdLDLNSbMiGIEi4iq8Q5rqcur iCfsViFpXJyekxrvO2CfRuI= X-Google-Smtp-Source: ABdhPJxVYk5dTBWe1mJxktikUrA5wVXE+qKViguVoRNoq2hNon41zrs+Wi/rrRWno2egsIvCjEfIrg== X-Received: by 2002:a17:90b:4ace:: with SMTP id mh14mr24891852pjb.164.1636625187470; Thu, 11 Nov 2021 02:06:27 -0800 (PST) Received: from kparameshwa-a01.vmware.com.com ([106.51.25.41]) by smtp.googlemail.com with ESMTPSA id d12sm2666147pfh.165.2021.11.11.02.06.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Nov 2021 02:06:27 -0800 (PST) From: Kumara Parameshwaran To: grive@u256.net Cc: dev@dpdk.org, Kumara Parameshwaran Subject: [PATCH] failsafe: Bug fix for the secondary process RX-TX support Date: Thu, 11 Nov 2021 15:36:21 +0530 Message-Id: <20211111100621.84769-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. 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)