2022-04-01 06:29 (UTC-0700), Tyler Retzlaff: [...] > +static int > +test_thread_affinity(void) > +{ > + pthread_t id; > + rte_thread_t thread_id; > + > + RTE_TEST_ASSERT(pthread_create(&id, NULL, thread_main, NULL) == 0, > + "Failed to create thread"); > + thread_id.opaque_id = id;
The need for this hack means that the new API is unusable in practice. I think functions to get the current thread ID and to compare IDs must be the part of this series to accept this unit test patch.