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 E63B0A0553; Thu, 20 Oct 2022 17:36:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D908840A7D; Thu, 20 Oct 2022 17:36:09 +0200 (CEST) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id 3CA2540694 for ; Thu, 20 Oct 2022 17:36:08 +0200 (CEST) Received: by mail-pj1-f49.google.com with SMTP id x31-20020a17090a38a200b0020d2afec803so3457677pjb.2 for ; Thu, 20 Oct 2022 08:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=hqsPdpLad3yofkG+oovN0OU2kbVPVDshmLTW2R0ZA0I=; b=yNqZErTi+b8lxt0kAiFLRzSil3BtHWcs7CVTRe9tC6SDuuulUVFtJEtp1/y3GRr0xR WU7WcAgYAEs8ful2V8wyXyoBenajdcGg4PkI/W5mmR/XZaOeEy1blO5jFz9cBK85MIAK 2Ht89urP1soERPneelni/J9H4tUxnNBdDLdzfGO2L2xuZ2CSiMk1zqub/Hyf4Co7v7N/ YbAfH7VaraO3sqMIryDS+mjb7VwF7O15YBKM761ZYlCS+iNpiCK5+3MBm3E5BpmBa52t 9fkek7oFsIKOLPXI6M+3/xD98SckFpd96mbXnUxVlC9oTrG2T9ZBx8NvDAjbCxJW9lYh JzVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=hqsPdpLad3yofkG+oovN0OU2kbVPVDshmLTW2R0ZA0I=; b=ETgTwnzcdO5swqkU52aZHOYDYTfb31urL0d4o+kFsS/fUOs0fdg4AW0HjL26nmt+7u CJ+zCBlJ8i2eAHfo/dsvhZ1wegoEakE9SXCW1P5gKmiurLXAP5o3GU4L/PcyExajkpog 633eXKdpojW/HRdeSeC3z1Xf6FPtfl0JZRBslxmNRMIAGvx9Wj36QPK9GQAX4u/LEoBY ePtIpLiLA9T4NPV7/dbJvKhyc/7SSny7L86Dok/Hyq7faSmUsSjZhCl+7COtlxCuZGY+ RnsbrwB3CSb0IxCoPp90hWqmmc71S+j2RC/cyYyW8s/VsGBCZeF7iBEwWbbhYYte0laS xmdg== X-Gm-Message-State: ACrzQf1tgyXCI4x9B2ggRlNmD0brMRVgEt+Md87IX88Frco8y/uciQNc Yq63LOyKhVpJWk+UDif7nCYEZA== X-Google-Smtp-Source: AMsMyM6Hf4dTarYRqK/dBjwluxH7bXlLYepANstzIXBTF5H/ttBjtR84SGo/0HRefWqBDoNADWBqXA== X-Received: by 2002:a17:90a:c782:b0:202:c73e:5488 with SMTP id gn2-20020a17090ac78200b00202c73e5488mr51522959pjb.202.1666280167427; Thu, 20 Oct 2022 08:36:07 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id w14-20020aa79a0e000000b005632d3b5c9csm13475354pfj.211.2022.10.20.08.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 08:36:07 -0700 (PDT) Date: Thu, 20 Oct 2022 08:36:05 -0700 From: Stephen Hemminger To: David Marchand Cc: Markus Theil , dev@dpdk.org, Michael Pfeiffer , Tyler Retzlaff Subject: Re: [PATCH v2 1/2] eal: expose lcore pthread id Message-ID: <20221020083605.274c43f2@hermes.local> In-Reply-To: References: <20221014062100.5761-1-markus.theil@tu-ilmenau.de> <20221014075421.10300-1-markus.theil@tu-ilmenau.de> 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 Thu, 20 Oct 2022 13:20:40 +0200 David Marchand wrote: > On Fri, Oct 14, 2022 at 9:54 AM Markus Theil wrote: > > > > From: Michael Pfeiffer > > > > Also expose the pthread id of each lcore, in > > order to allow modification of pthread attributes, > > for example use rte_thread_setname without executing > > pthread_self() on the maybe already running lcore. > > > > The rte_lcore_to_thread_id function is added to API. > > > > Signed-off-by: Michael Pfeiffer > > We are trying to abstract the use of pthread in DPDK API. > So I don't think this patch is going in the right direction. Agree, exposing this will make Windows support harder and who knows what next OS to come will need.