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 4FAD6A0508; Tue, 26 Apr 2022 16:56:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E164440E78; Tue, 26 Apr 2022 16:56:05 +0200 (CEST) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 298D8406A2 for ; Tue, 26 Apr 2022 16:56:05 +0200 (CEST) Received: by mail-pj1-f41.google.com with SMTP id bd19-20020a17090b0b9300b001d98af6dcd1so2381507pjb.4 for ; Tue, 26 Apr 2022 07:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uM36Y5P9H3PQVE7z+hXJKhHAlnYdgW08vsKsflWqJf4=; b=R0JJcP0cGx96PClAnKZ8GQ/SryV/1hAOGk/ikAwoGu3ZsK3wL8/2JFsnPY8pTCBg1B 2qsxKRM6esa5FbLjBWxTS7xaw8A9Hpza04Te5D7sVzJxQQDcT0Z1F9enxXQGSqrFeBYX 7ayfJusAmENJo8hm9MUe+DOvTFfDEVlxHtrWs1uEBGhnLs2Z9208oWFIRulsmXFMb5Rt n/XjAnleqc4uoTwYT/1zZZRU7A9s2Uw0P1w+0Oz3z6JjkbbEhh8ftGBovNzCB2h28M5Z H49GXtefkZR3DyZIhQfzO7plgOml1wnrbkr41/MyxKAFKe4UqteYpPDKPcfxbOhccVvW OCCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uM36Y5P9H3PQVE7z+hXJKhHAlnYdgW08vsKsflWqJf4=; b=Vktg1kab/96xwSveY6vHKQ5D8jUuryXcjGgE6bza9mkRoIyjoR5ksrSVvcPN65ylPm 5oIZSeTwfCXu9kj+NO2IvSeB/qqs10JTWD+Sm8eAQIRmiVFuR53m/HvvP1QTCMUOl4S7 DvUmtSLaJVuFDOHj3//ZygGv38fJCWNajvB7nPsu6qOaZhDvyusnWzn3+P+JS/LAeDzh BeaPDvKKKmZia9kmkIUO/Ik8ktyQw8qrI7UA3aDr+nbuMTskPsxL7UyGQ4yDybkE/O5K CFeOhuBi4scY6O3FZoqruO/NiMoIfmw5oMaGJ0fSCLPx6szuqRB/bzCEMRFopm99zxZ6 CReQ== X-Gm-Message-State: AOAM533QlL4DYdpXb3Be0AT+BNAvF/hIXTTTAcqM9d967/xbn32BJavc KslLh1JZHZsWDoViV3E/KJjDuw== X-Google-Smtp-Source: ABdhPJwIYmuD3R0d7kMY1uZIQBZwXPXAsjRrz4kZbq1IWS3z7kdzSmQQjzxmX5rfz4UvyxFXoCgInQ== X-Received: by 2002:a17:90a:a78c:b0:1b8:b769:62d0 with SMTP id f12-20020a17090aa78c00b001b8b76962d0mr27347905pjq.227.1650984964186; Tue, 26 Apr 2022 07:56:04 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id w137-20020a62828f000000b0050d2f9c3409sm9948277pfd.199.2022.04.26.07.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 07:56:03 -0700 (PDT) Date: Tue, 26 Apr 2022 07:56:00 -0700 From: Stephen Hemminger To: Ansar Kannankattil Cc: dev@dpdk.org Subject: Re: Reuse Of lcore after returning from its worker thread Message-ID: <20220426075600.3598119f@hermes.local> In-Reply-To: References: 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, 20 Apr 2022 17:52:20 +0530 Ansar Kannankattil wrote: > Hi, > As per my understanding "*rte_eal_wait_lcore" *is a blocking call in case > of lcore state running. > 1. Is there any direct way to reuse the lcore which we returned from a > worker thread? > 2. Technically is there any issue in reusing the lcore by some means? Yes just relaunch with new work function.