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 E584A4253E; Fri, 8 Sep 2023 06:22:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0BBA40285; Fri, 8 Sep 2023 06:22:58 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 5CD7140042 for ; Fri, 8 Sep 2023 06:22:57 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 5CD0F212B5C0; Thu, 7 Sep 2023 21:22:56 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5CD0F212B5C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1694146976; bh=LRHBFlvWxoVD7ecV8APOZePqyF7Je6GitW1qi3/Wlq0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BFLajqWvY91u2Th9J4MlTNbDDn430TN8OpbfgVghd2+BpOSIHHBm+zZ3BRSHmN8Pu s3IzalEQvJSSXR+ZPzAfNanD77OdEOKkf0Nms7QG0NslZUtKrzQUqHayLOzsvhbhD8 8Z42pfy5ue2EVvkoVJugAvGYlzxgalnY/RZzNk8Y= Date: Thu, 7 Sep 2023 21:22:56 -0700 From: Tyler Retzlaff To: Thomas Monjalon Cc: dev@dpdk.org, David Marchand , Ferruh Yigit , Anatoly Burakov , Bruce Richardson , Dmitry Kozlyuk , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam Subject: Re: [PATCH 10/11] eal: remove deprecated thread functions Message-ID: <20230908042256.GF7692@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20230906162226.1618088-1-thomas@monjalon.net> <20230906162226.1618088-11-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230906162226.1618088-11-thomas@monjalon.net> User-Agent: Mutt/1.5.21 (2010-09-15) 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, Sep 06, 2023 at 06:12:27PM +0200, Thomas Monjalon wrote: > The deprecated functions rte_thread_setname() and rte_ctrl_thread_create() > are replaced with the new rte_thread API: > > rte_thread_setname() > can be replaced with > rte_thread_set_name() > or rte_thread_set_prefixed_name() > > rte_ctrl_thread_create() > can be replaced with > rte_thread_create_control() > or rte_thread_create_internal_control() > > Signed-off-by: Thomas Monjalon > --- Acked-by: Tyler Retzlaff with suggestions. ... > ABI Changes > diff --git a/lib/eal/common/eal_common_thread.c b/lib/eal/common/eal_common_thread.c > index 31c37e3102..78f643af73 100644 > --- a/lib/eal/common/eal_common_thread.c > +++ b/lib/eal/common/eal_common_thread.c > @@ -248,7 +248,7 @@ struct rte_thread_ctrl_params { > enum __rte_ctrl_thread_status ctrl_thread_status; > }; the code above here struct rte_thread_ctrl_params i think can now get renamed to rte_thread_control_params and i think we can get rid of the union. if i look through the code history i only added it to help maintain compatibility while we had both ctrl and control thread APIs. > > -static int ctrl_thread_init(void *arg) > +static int control_thread_init(void *arg) > { > struct internal_config *internal_conf = > eal_get_internal_configuration(); > @@ -273,80 +273,18 @@ static int ctrl_thread_init(void *arg) > return 0; > }