Shnaiderman ; Fady
> Bader ; Ophir Munk
> Subject: Re: [dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle
>
> 16/06/2020 20:53, Tasnim Bashar:
> > > From: Thomas Monjalon
> > > 02/06/2020 04:00, Tasnim Bashar:
> > > > Casting thread ID to handle i
16/06/2020 20:53, Tasnim Bashar:
> > From: Thomas Monjalon
> > 02/06/2020 04:00, Tasnim Bashar:
> > > Casting thread ID to handle is not accurate way to get thread handle.
> > > Need to use OpenThread function to get thread handle from thread ID.
> > >
> > > pthread_setaffinity_np and pthread_geta
> From: Thomas Monjalon
> 02/06/2020 04:00, Tasnim Bashar:
> > #define pthread_setaffinity_np(thread, size, cpuset) \
> > - eal_set_thread_affinity_mask(thread, (unsigned long *) cpuset)
> > + eal_set_thread_affinity_mask(thread, cpuset)
> > #define pthread_getaffinity_np(thread, size, cpuse
> From: Thomas Monjalon
> 02/06/2020 04:00, Tasnim Bashar:
> > Casting thread ID to handle is not accurate way to get thread handle.
> > Need to use OpenThread function to get thread handle from thread ID.
> >
> > pthread_setaffinity_np and pthread_getaffinity_np functions for
> > Windows are affe
02/06/2020 04:00, Tasnim Bashar:
> #define pthread_setaffinity_np(thread, size, cpuset) \
> - eal_set_thread_affinity_mask(thread, (unsigned long *) cpuset)
> + eal_set_thread_affinity_mask(thread, cpuset)
> #define pthread_getaffinity_np(thread, size, cpuset) \
> - eal_get_thread_aff
02/06/2020 04:00, Tasnim Bashar:
> Casting thread ID to handle is not accurate way to get thread handle.
> Need to use OpenThread function to get thread handle from thread ID.
>
> pthread_setaffinity_np and pthread_getaffinity_np functions
> for Windows are affected because of it.
>
> Signed-off-
12/06/2020 18:22, Tasnim Bashar:
> From: Thomas Monjalon
> > 02/06/2020 04:00, Tasnim Bashar:
> > > --- a/lib/librte_eal/windows/include/rte_windows.h
> > > +++ b/lib/librte_eal/windows/include/rte_windows.h
> > > @@ -29,6 +29,7 @@
> > > #define INITGUID
> > > #endif
> > > #include
> > > +#inc
m;
> pallavi.ka...@intel.com; ranjit.me...@intel.com; ocard...@microsoft.com;
> navas...@linux.microsoft.com; dmitry.kozl...@gmail.com; Tal Shnaiderman
> ; Fady Bader ; Ophir Munk
>
> Subject: Re: [dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle
>
> 02/06/2020 04:00, Tas
02/06/2020 04:00, Tasnim Bashar:
> --- a/lib/librte_eal/windows/include/rte_windows.h
> +++ b/lib/librte_eal/windows/include/rte_windows.h
> @@ -29,6 +29,7 @@
> #define INITGUID
> #endif
> #include
> +#include
Why do you need adding rte_log in rte_windows?
Casting thread ID to handle is not accurate way to get thread handle.
Need to use OpenThread function to get thread handle from thread ID.
pthread_setaffinity_np and pthread_getaffinity_np functions
for Windows are affected because of it.
Signed-off-by: Tasnim Bashar
---
v3: WA to remove warning
10 matches
Mail list logo