From patchwork Thu Jan 14 07:13:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 362819 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp242479jap; Wed, 13 Jan 2021 23:24:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKIp/n9CBoxK0yK4feeWETKsZisIwALdEE8Ka2yoQi1YiDcsjS1O/514tZukdqEPuzr0hH X-Received: by 2002:a17:907:1701:: with SMTP id le1mr4419426ejc.68.1610609068055; Wed, 13 Jan 2021 23:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610609068; cv=none; d=google.com; s=arc-20160816; b=O9naICJVasCEwDup6JLjGgprvalxIFpXQ8ZjSk2BrXLG5m+OMiW+m6j/cjyxLLNsm1 R7cSpZiuqybyCvQigKdQEKFiaMVK93b4hZswMkntLgyDjW2F7YnBdtQNKepLMN4avZjP WWIjqghrFhx+LL27dLZj1zb6NrBiQ8cVZtYFO2fFknIDXbIeYxClSI9HJOz6VtLh23JW NcfFQH1TSMC8a8xucxbJNn6uD5Bq1gCqgPXVOg1V+9/8YoovW+VIA9/65cQd9wKM5mXd FxilLc/rkUzC/p650e6Hl53aE2WtQVPf+OLvE3feAsQU17Ivun7siam7gmdXHR8Qe1ny LKcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from; bh=P065TzQm1lD/Vz7g5k9QiKHgFuHPdiGPgntIH5ZRcyY=; b=eibNfKJ8oDGYrf/sg4Ctt9Kj7DM8l2X7P+8k4WMlrECPcA2YxMQm0264De4l6WxBeL 68nWT0ybCTspW7oDXfnb5SYCGx89fdIE0N8OjUYW3cJfO08mTucLPuInRECHPTNBVKvS yQ2Vc4KtDcUWbv+TMSkAeGe4+i7rmTVXy7nDraroTXRP1M/HClVE8O+Np7y5PTZf/6rz cvK3HJjnhS2ukyGIW1GCeF4pAgxw2RoHJND5V2Gff5Z9nQx26OHjLzi/S57ym1ZfeRnB P3f9exWyU8OvapEGh4I099lIA6XA1TPu0hCLseM6JuRha/tYr5GpIVGgJ2SMSUSOaCsm 8ZyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id o9si397342ejr.665.2021.01.13.23.24.27; Wed, 13 Jan 2021 23:24:28 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3627140F8C; Thu, 14 Jan 2021 08:24:27 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id 21C39140F89 for ; Thu, 14 Jan 2021 08:24:27 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id EF3342011A9; Thu, 14 Jan 2021 08:24:26 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id ACBEA2006F7; Thu, 14 Jan 2021 08:24:25 +0100 (CET) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A7404402D9; Thu, 14 Jan 2021 08:24:23 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org Cc: Hemant Agrawal Date: Thu, 14 Jan 2021 12:43:46 +0530 Message-Id: <20210114071346.18235-1-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH] tailq: secondary process may not have all tailq available 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" Secondary process may not have all the tailq available for mapping, so better to ignore the error. e.g. if the primary process is linked with N libs and secondary process is linked with less number of libs. dpdk-procinfo results into following error: EAL: Cannot initialize tailq: VMBUS_RESOURCE_LIST Signed-off-by: Hemant Agrawal --- lib/librte_eal/common/eal_common_tailqs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/lib/librte_eal/common/eal_common_tailqs.c b/lib/librte_eal/common/eal_common_tailqs.c index ead06897b8..55bfc70db4 100644 --- a/lib/librte_eal/common/eal_common_tailqs.c +++ b/lib/librte_eal/common/eal_common_tailqs.c @@ -155,7 +155,8 @@ rte_eal_tailqs_init(void) /* second part of register job for "early" tailqs, see * rte_eal_tailq_register and EAL_REGISTER_TAILQ */ rte_eal_tailq_update(t); - if (t->head == NULL) { + if (t->head == NULL && + rte_eal_process_type() == RTE_PROC_PRIMARY) { RTE_LOG(ERR, EAL, "Cannot initialize tailq: %s\n", t->name); /* TAILQ_REMOVE not needed, error is already fatal */