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

David Marchand david.marchand at redhat.com
Mon Dec 9 08:00:00 CET 2024


Hello Xueming,

On Sat, Dec 7, 2024 at 9:02 AM Xueming Li <xuemingl at nvidia.com> wrote:
> @@ -176,6 +192,14 @@ rte_thread_create(rte_thread_t *thread_id,
>                 }
>         }
>
> +#ifdef RTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP
> +       ret = pthread_create((pthread_t *)&thread_id->opaque_id, attrp,
> +               (void *)(void *)thread_func, args);
> +       if (ret != 0) {
> +               RTE_LOG(DEBUG, EAL, "pthread_create failed");

A \n is missing here.

> +               goto cleanup;
> +       }
> +#else /* !RTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP */
>         ret = pthread_create((pthread_t *)&thread_id->opaque_id, attrp,
>                 thread_start_wrapper, &ctx);
>         if (ret != 0) {


-- 
David Marchand



More information about the stable mailing list