Re: [dpdk-dev] [PATCH] eal/linux: truncate thread name

2020-07-11 Thread David Marchand
On Fri, Jul 10, 2020 at 2:41 PM Thomas Monjalon wrote: > 10/07/2020 11:45, David Marchand: > > pthread_setname_np refuses names larger than 16 bytes (\0 included). > > Rather than return an error, truncate the name to this limit in the > > rte_thread_setname helper. > Acked-by: Thomas Monjalon A

Re: [dpdk-dev] [PATCH] eal/linux: truncate thread name

2020-07-10 Thread David Marchand
On Fri, Jul 10, 2020 at 2:41 PM Thomas Monjalon wrote: > > 10/07/2020 11:45, David Marchand: > > pthread_setname_np refuses names larger than 16 bytes (\0 included). > > Rather than return an error, truncate the name to this limit in the > > rte_thread_setname helper. > [...] > > --- a/lib/librte_

Re: [dpdk-dev] [PATCH] eal/linux: truncate thread name

2020-07-10 Thread Thomas Monjalon
10/07/2020 11:45, David Marchand: > pthread_setname_np refuses names larger than 16 bytes (\0 included). > Rather than return an error, truncate the name to this limit in the > rte_thread_setname helper. [...] > --- a/lib/librte_eal/linux/eal_thread.c > +++ b/lib/librte_eal/linux/eal_thread.c > @@

[dpdk-dev] [PATCH] eal/linux: truncate thread name

2020-07-10 Thread David Marchand
pthread_setname_np refuses names larger than 16 bytes (\0 included). Rather than return an error, truncate the name to this limit in the rte_thread_setname helper. Caught with ixgbe which creates control thread with name "ixgbe-link-handler": Configuring Port 0 (socket 0) EAL: Cannot set name for