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 317A9439B7; Wed, 24 Jan 2024 16:47:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A774040E72; Wed, 24 Jan 2024 16:47:24 +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 1B30340E0F for ; Wed, 24 Jan 2024 16:47:24 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1d70a986c4aso25594505ad.2 for ; Wed, 24 Jan 2024 07:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1706111243; x=1706716043; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=CUuQ+pB1WyiLTTuiF1aWCgOhsUdaDN/GBcYfAHTVatw=; b=vSEm0e8CVNXqGI7XsRzcHpHz3XuMm8jcE1xBl8ZLMsRxMDBmHs4fHjlUQGwTD2Ze/E FOPIKWuuVaAczzOr9+axVNQMXiljW3cl0IWJ+a3KnfyWFq5VAS0g3heWcIk3RKl5tm9I epnpv1mznv0vpH9SwYzDJRtfYCQafaE+3h+gdF/7X8GNAlEyDA6OZhCkYR2Ez6FOlXqA 9s9roukVxUtYw9ore6YTW8R/GiFsFGL0TZ8BB8pyc/Rv1+XQrMVgkoZpX+2oXz6M/5V0 h07ItmYARNWpM6+5PcrgMRxeLCjdhApEuCBXpghUMQmHQ3JLZvoF8coYVbTwZiKgRux4 IYOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706111243; x=1706716043; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CUuQ+pB1WyiLTTuiF1aWCgOhsUdaDN/GBcYfAHTVatw=; b=xII8HqNPr33Z1V1yquHBHx51ya3WkaJmyK/BLDo4IAX1TSSpClCrspqi42ceqepvfz I6xuLaVjdWf3e3j77PDRVfeivWGE5j5uSNqAM4kmLDjl8SNwL6rjql/4Bh82nyAGneiV gvTSam1OdQm3cRAD7aesKcRLO6cAWjsOoVsg1H8uAh/06VMYSuBUfMMN7c6jXqkxADYC KrbQT3fBS+uu6oXC6KL3xluG1w02KAdFfrtkDAy7NCNStJumQxSph0IPRep9OHaC67UN Xrt1MmK6dAVmmNnJ9C9AvaH5bG50ecfm95UWLqvU72/OZWvXyXjbSwiOJnf/LK4NZdIH X3GQ== X-Gm-Message-State: AOJu0YyrcrDRJh+/e2bMdpbOQDouYp/hCW63OHuEtkokwlDNLZNb1AYO 92nb6euXr0HlEWww2DKrU46Y7BeZehRsTSggJvxZ7vvXQaSbAKJoczaj53azi6Y= X-Google-Smtp-Source: AGHT+IEiTtJoMqc1IeYh6q2rV6PawF7ByCg4XMA65iaPwCrbZuG4/AOTI62Q7oafZ88AlLiKWkSWgg== X-Received: by 2002:a17:903:22c5:b0:1d7:41ff:333a with SMTP id y5-20020a17090322c500b001d741ff333amr1026323plg.60.1706111243155; Wed, 24 Jan 2024 07:47:23 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id t7-20020a170902b20700b001d740687d1csm6045287plr.193.2024.01.24.07.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 07:47:23 -0800 (PST) Date: Wed, 24 Jan 2024 07:47:21 -0800 From: Stephen Hemminger To: Rahul Gupta Cc: dev@dpdk.org, thomas@monjalon.net, bruce.richardson@intel.com, dmitry.kozliuk@gmail.com, sovaradh@linux.microsoft.com, okaya@kernel.org, sujithsankar@microsoft.com, sowmini.varadhan@microsoft.com, krathinavel@microsoft.com, rahulrgupta27@gmail.com, Rahul Gupta Subject: Re: [dpdk-dev] [PATCH v4] eal: refactor rte_eal_init into sub-functions Message-ID: <20240124074721.298fd10f@hermes.local> In-Reply-To: <1706103911-6907-1-git-send-email-rahulgupt@linux.microsoft.com> References: <1706103911-6907-1-git-send-email-rahulgupt@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 24 Jan 2024 05:45:11 -0800 Rahul Gupta wrote: > + > +/* > + * waits until function executing on given lcore finishes. > + * returns value returned by the function executing on that lcore. > + */ > +__rte_experimental int > +rte_eal_init_wait_async_setup_complete(void) > +{ > + int lcore_id = -1; > + lcore_id = rte_lcore_id(); Useless initialization.