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 DC9C245CD1 for ; Wed, 13 Nov 2024 08:45:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF74640E0A; Wed, 13 Nov 2024 08:45:26 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id EC35040E0A for ; Wed, 13 Nov 2024 08:45:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731483925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BYPJMxaexJw+uDU6Ddf1vnIhvoZON9K6Ft0mXGzvGwA=; b=DlhsKl/cDo7aerSeXtHfcW7sLmJP7r8tbY08qnGZIq1J92DS96FljxrpuZvJ/Onk0iR4Cb LT9cm9RuqBL10JWDooclLM2OAGgcyPRvmPKQzVeUTSeNnKEb3y1pB+gNQ3u78qeXpXUZI6 T3wLHe+2uQfNZsJvVtPqJAdlht+bB4A= Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-300-MCsZc4n9PCu_6P5XIKm3FQ-1; Wed, 13 Nov 2024 02:45:24 -0500 X-MC-Unique: MCsZc4n9PCu_6P5XIKm3FQ-1 X-Mimecast-MFC-AGG-ID: MCsZc4n9PCu_6P5XIKm3FQ Received: by mail-lj1-f199.google.com with SMTP id 38308e7fff4ca-2fcae3fa9dcso37404001fa.0 for ; Tue, 12 Nov 2024 23:45:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731483922; x=1732088722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BYPJMxaexJw+uDU6Ddf1vnIhvoZON9K6Ft0mXGzvGwA=; b=azqAJY4oVzIuUjXqsMj0xNAmVjWrdVD166TL5/m5nwTsNxY39rJf5rWljuZSxzjvtl mJ6cEyXBKttsSTF0z9Kf8UbmeJd/d1g0RCKJa5Y9aC7M/CMXf6GKPO20ZQz901OzWUt0 enhiSCkoge3574EAwrGK5rC6pdrSx/B2Hw1LrRpHAcxVpFT4Tc+LiF23mI2TbjtB3bwf Scnvlm/GlqrJQMmUkNlZYnd8lMICxhLXW34RTwt92dVKKV9Laxch/aUWqxP0U5XWe3Dm VxAgTrshPXgz2XcjSI7gFpos2tBNXDEirnS0jqPInFNqAeTaEQW1rqr7VgzwIkK9AG15 3tYg== X-Forwarded-Encrypted: i=1; AJvYcCW4+o+rUIi2/jK5sEcEb+eZb8bivZvNar7QpR7+fgdvCmicrI9NptfUoQ+9PlGTOi1XOmRqx6A=@dpdk.org X-Gm-Message-State: AOJu0YzCtO9LwwidsuEct/XqoDDumMwXaOOaeOQ9CU2bUxIZAIlvt6g9 0XKk4HYA7uubCDY5mj2olhnKPieGGBVelggsTa3vwxMIznRa8xLE/xpJ0nqjwbvKM7mD4b9Ml+q /slTCymYXqT6yGNQ2iK0cVXKH331GdcvWMNl3I2RHpCfzNe96uN1T6idsnbCILETFoI68+qwCw3 5EC8s8RmMDZCMThrQah80= X-Received: by 2002:a05:651c:1609:b0:2fb:6328:b633 with SMTP id 38308e7fff4ca-2ff4c597754mr9202831fa.4.1731483922562; Tue, 12 Nov 2024 23:45:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHzp+PHl+SNLjx1yGDu6JOqtY8FZNjBGY7h/mu2HwH2O+BuuZQpxquqTNZMv6iGOZ0pPnkQgF7026F1ogtBQ4= X-Received: by 2002:a05:651c:1609:b0:2fb:6328:b633 with SMTP id 38308e7fff4ca-2ff4c597754mr9202701fa.4.1731483922157; Tue, 12 Nov 2024 23:45:22 -0800 (PST) MIME-Version: 1.0 References: <20241023211704.1216956-79-luca.boccassi@gmail.com> <20241112220754.666489-1-luca.boccassi@gmail.com> <20241112220754.666489-9-luca.boccassi@gmail.com> In-Reply-To: <20241112220754.666489-9-luca.boccassi@gmail.com> From: David Marchand Date: Wed, 13 Nov 2024 08:45:11 +0100 Message-ID: Subject: Re: patch 'eal/unix: optimize thread creation' has been queued to stable release 22.11.7 To: luca.boccassi@gmail.com Cc: Luca Boccassi , Stephen Hemminger , Chengwen Feng , dpdk stable X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: mywYB6URUn7_xHONqYxBkd5Uy5X83M86y8yw3lI5c4Q_1731483923 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hello Luca, On Tue, Nov 12, 2024 at 11:08=E2=80=AFPM wrote: > @@ -142,6 +148,16 @@ rte_thread_create(rte_thread_t *thread_id, > > attrp =3D &attr; > > +#ifdef RTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP > + if (CPU_COUNT(&thread_attr->cpuset) > 0) { > + ret =3D pthread_attr_setaffinity_np(attrp, sizeof= (thread_attr->cpuset), > + &thread_attr->cpuset); > + if (ret !=3D 0) { > + RTE_LOG(DEBUG, EAL, "pthread_attr_setaffi= nity_np failed"); This message is missing a final \n. The rest looks good to me. > + goto cleanup; > + } > + } > +#endif > /* > * Set the inherit scheduler parameter to explicit, > * otherwise the priority attribute is ignored. --=20 David Marchand