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 B4DF7A0C53; Wed, 3 Nov 2021 13:06:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 399E541149; Wed, 3 Nov 2021 13:06:55 +0100 (CET) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by mails.dpdk.org (Postfix) with ESMTP id DB74541134 for ; Wed, 3 Nov 2021 13:06:53 +0100 (CET) Received: by mail-pg1-f175.google.com with SMTP id f5so2152385pgc.12 for ; Wed, 03 Nov 2021 05:06:53 -0700 (PDT) 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=AkASORnYYTDsGMFWMwJhJJlJDMBiVEN9KR+fAUUOcMU=; b=cJYDXLNhbLGdXOKu9Q2xDoRrUhj8UGlN9SIkdoZe5aDde+ZK2alJWRPswswjm9dsKC UqwdOM9o4Nami0SBVk2VD85H9N+cwM/rKupdJOWQP02f0lEHq8m2+GNgfHbeyS4QCwfn 3BDnMdrGLwDwGR6xrJvJT5smEY04OOjO5JdeZc76KAO4SHu582yCjphiMLki9fpWea+J uLKqk6211+ukR1VY9aUoBoOLoykjE8L0QBBlEFp91R+oBw9cLcnl8vxCBrW4xhIRb9YD C49BqxE5mYnSmVDmW6B1vgk3YIbkTsC/7Rbbpojr7rUtNM/yrYG2RP6/wwTvSPoGcuPO k9ZQ== 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=AkASORnYYTDsGMFWMwJhJJlJDMBiVEN9KR+fAUUOcMU=; b=PP2dBhRzr2RTk1BUrXWPPFc3Bp/FaGiRFkfBnpHHA0Hptu/Pgolf4yVtiyidNExWqJ V1lZ11Z2ZTLqw3qZG860vFXL9P1k8PP/TzsBkALTYJObe3HzdRyWNqySJrrmeEYxEUK5 lcgfSf+3tA+BDXJaeypam4xgpI2Ft65RR7TBNECzjSWFhXE2dwD7HrDVnrI1cUpaqFMQ QkLO3+eVK9kTjz6qlcj5UnCozRiQI5WXUO3BpDzWTYmkH4vrqyZWt+0CeoBkQWJEDct3 UsbO0RBUXfxDXCwDHXZWcns0SXxB8SHpR6k6i7Wv2xhaU4Kj8xGUsE8aWkqJ+EXNgY1r DU2Q== X-Gm-Message-State: AOAM5324weDtvb9SkeVD5l/EfQeKwgrjmr3XlUQWE0dIYL7UfF49gMn7 gQXyNc+JBLb8f6lKLKnXp+w= X-Google-Smtp-Source: ABdhPJwo/C7e5VXcBrpztw2jheC+yWAUMdznbKJmOtKcPmv0OdmqPc3OQRboMzTubx0IEHh7pDQTUQ== X-Received: by 2002:a62:1d45:0:b0:480:c3ad:b2e1 with SMTP id d66-20020a621d45000000b00480c3adb2e1mr28224791pfd.67.1635941212975; Wed, 03 Nov 2021 05:06:52 -0700 (PDT) Received: from kparameshwa-a01.vmware.com.com ([106.208.27.47]) by smtp.googlemail.com with ESMTPSA id l6sm2618306pfc.126.2021.11.03.05.06.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Nov 2021 05:06:51 -0700 (PDT) From: Kumara Parameshwaran To: grive@u256.net Cc: dev@dpdk.org, Kumara Parameshwaran Date: Wed, 3 Nov 2021 17:36:42 +0530 Message-Id: <20211103120642.21976-1-kumaraparamesh92@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] failsafe: 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. 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 Sender: "dev" 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)