Hello Xueming,
On Sat, Dec 7, 2024 at 9:02 AM Xueming Li <xuemingl@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