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 5B18746056; Fri, 10 Jan 2025 18:19:08 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 480FA4279E; Fri, 10 Jan 2025 18:19:08 +0100 (CET) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by mails.dpdk.org (Postfix) with ESMTP id A4DC64279D for ; Fri, 10 Jan 2025 18:19:06 +0100 (CET) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2f43d17b0e3so4012769a91.0 for ; Fri, 10 Jan 2025 09:19:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1736529546; x=1737134346; 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=XcjaLmZdm3vJrqjOP99by7tXGbHNoDv2BEvWddMeSB8=; b=Hysej1zZExPu2kHGDWEEwHzc7g28uQ336Zc83Zg6lXdt02eG+ud5rS6HvOHZa5/uuZ epp2YkVReS8mxJyf9CSC+npQcDCNN7zk73fcttlMoXXgCFnQnKygG+FjKE9eUXrW7doY WxbWwhz675k6uDD4LMSTVVbK3jlpEMLwM0cC7o7ayYOiU58SnvJpxjIpEkpp4kUZyVqi RyLTp9cCjQAelDvgahFOZFmwTkhYH0/wpFUvv9F3EMz7bkU3rO6I6qSSudn+UX/J466h tLxqrZ9wTWPcc8zYOo062B7y5NlF73NQT76ZNqkb4jnvSDbb4xxLr6O0r12hQyvWAKOM YtAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736529546; x=1737134346; 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=XcjaLmZdm3vJrqjOP99by7tXGbHNoDv2BEvWddMeSB8=; b=jcTL/2emyWuQyPPiyKh4Bov7gVKkS+GilkmI/SmOgjqS4f5+AQ0aL35ZXtw0zmS9EZ 0ppyp5MYjI1w3FzwkeFmjSf3WFuop6DAu8kOJZAeJGRxhN6iR3joonUbXdoj3ETrh6zJ wINL1LGJCNgYvFtRXwG/eO9yybNSGMgi3q+qyoF+Gw9r1I58S1gq7a9VmnJYf182/JEe UECZYmsarJkhf/7Y+gY29F00rC719APXgbLYenBQKtjAx1KNMTpT69OYJ7jb4xioucXl nEyhYCixZ4Jw0ZUHn0o3tT4R1SoaciuDveyrmuSNT+CeikEEgypfMSqQAsb/fBzVW/zH NNOw== X-Gm-Message-State: AOJu0Yy6fDvvDy/LQ5mKrhA8nmOlBq3YLF7AkGcDtEu+7kpgpO79dl8q Z8QC0rAmR1cdFqt0Nk443nyMsQXC815u5ygayTP4WtJmL9HI8KBCkLL0OiJu7D8= X-Gm-Gg: ASbGncsUQVNeUFV8e+s5A6wty4QANUWbny0Rey7hxXWHaBZ0fpjHJUJAoFqhUKfrV2p EwURjf+vku054i57KI+VlKppdkGg+BGYQ5sPPjI2YwIV+igk2EOw2tY+YVJkiI1rqo6wlZgIZcS 91KZvkAoZS8J174CkzTdD4YH7FddcsxsNOwF7SjzmRjOexk55fhSA/3Gc7qL1FEJM+C31Gs3pmY 41grVYfbyVuB8ByzAwC2+2/B4m+UXEsLBGPxT0Z0CkViLUTf1OdMa3JFlXLk4+66TFoUC7TKLMI qTBk+d3fMEl3vbD22V65eUP6pYekYuqHfQ== X-Google-Smtp-Source: AGHT+IGh8/mLIZ5Qz6AztVGMODzcGF0UFD463tCseZqMHaU2o/DrW9S3YlIbre/j3GWXDyGpuSonTQ== X-Received: by 2002:a17:90b:1f91:b0:2ee:f46f:4d5f with SMTP id 98e67ed59e1d1-2f548f17310mr15536964a91.6.1736529545725; Fri, 10 Jan 2025 09:19:05 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f54a369e30sm6199647a91.45.2025.01.10.09.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2025 09:19:05 -0800 (PST) Date: Fri, 10 Jan 2025 09:19:02 -0800 From: Stephen Hemminger To: Gagandeep Singh Cc: dev@dpdk.org Subject: Re: [PATCH] eal: add worker threads cleanup in rte_eal_cleanup() Message-ID: <20250110091902.5139f8b2@hermes.local> In-Reply-To: <20250110064717.1372216-1-g.singh@nxp.com> References: <20250110064717.1372216-1-g.singh@nxp.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 Fri, 10 Jan 2025 12:17:17 +0530 Gagandeep Singh wrote: > This patch introduces a worker thread cleanup function in the EAL library, > ensuring proper termination of created pthreads and invocation of > registered pthread destructors. > This guarantees the correct cleanup of thread-specific resources, > used by drivers or applications. > > Signed-off-by: Gagandeep Singh > --- What problem is this trying to solve? Canceling threads sends signals and can be problematic. Many of the operations done in drivers are not signal safe.