patch 'eal/unix: optimize thread creation' has been queued to stable release 22.11.7

David Marchand david.marchand at redhat.com
Wed Nov 13 08:45:11 CET 2024


Hello Luca,

On Tue, Nov 12, 2024 at 11:08 PM <luca.boccassi at gmail.com> wrote:
> @@ -142,6 +148,16 @@ rte_thread_create(rte_thread_t *thread_id,
>
>                 attrp = &attr;
>
> +#ifdef RTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP
> +               if (CPU_COUNT(&thread_attr->cpuset) > 0) {
> +                       ret = pthread_attr_setaffinity_np(attrp, sizeof(thread_attr->cpuset),
> +                               &thread_attr->cpuset);
> +                       if (ret != 0) {
> +                               RTE_LOG(DEBUG, EAL, "pthread_attr_setaffinity_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.


-- 
David Marchand



More information about the stable mailing list