[dpdk-dev] [PATCH] eal/windows: support thread ID query

2020-05-18 Thread Tasnim Bashar
Add rte_sys_gettid function to use rte_gettid() on Windows. rte_gettid() is required for recursive spin lock and recursive ticket lock. Signed-off-by: Tasnim Bashar --- lib/librte_eal/windows/eal_thread.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/windows

[dpdk-dev] [PATCH v2] eal/windows: support thread ID query

2020-05-20 Thread Tasnim Bashar
Add rte_sys_gettid function to use rte_gettid() on Windows. rte_gettid() is required for recursive spin lock and recursive ticket lock. Signed-off-by: Tasnim Bashar --- v2: remove eal_thread_self function and fix style --- lib/librte_eal/windows/eal_thread.c | 15 --- 1 file

[dpdk-dev] [PATCH] eal/windows: fix invalid thread handle

2020-05-21 Thread 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-by: Tasnim Bashar --- lib/librte_eal/windows

[dpdk-dev] [PATCH v2] eal/windows: fix invalid thread handle

2020-05-23 Thread 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-by: Tasnim Bashar --- lib/librte_eal/windows

[dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle

2020-06-01 Thread 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-by: Tasnim Bashar --- v3: WA to remove

Re: [dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle

2020-06-12 Thread Tasnim Bashar
In rte_windows, rte_log is used. Therefore, rte_log is included to use rte_windows independently. - Tasnim > -Original Message- > From: Thomas Monjalon > Sent: Thursday, June 11, 2020 7:35 AM > To: Tasnim Bashar > Cc: dev@dpdk.org; harini.ramakrish...@microsoft.co

Re: [dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle

2020-06-16 Thread 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_getaffinity_np

Re: [dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle

2020-06-16 Thread Tasnim Bashar
> 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 pthre

Re: [dpdk-dev] [PATCH v3] eal/windows: fix invalid thread handle

2020-06-16 Thread Tasnim Bashar
> From: Thomas Monjalon > Sent: Tuesday, June 16, 2020 12:17 PM > To: dmitry.kozl...@gmail.com; Tasnim Bashar > Cc: dev@dpdk.org; harini.ramakrish...@microsoft.com; > pallavi.ka...@intel.com; ranjit.me...@intel.com; ocard...@microsoft.com; > navas...@linux.microsoft.com; Tal

[dpdk-dev] [PATCH v4] eal/windows: fix thread handle

2020-06-24 Thread 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-by: Tasnim Bashar --- v3: WA to remove

Re: [dpdk-dev] [PATCH v4] eal/windows: fix thread handle

2020-06-25 Thread Tasnim Bashar
> From: Ranjit Menon > Sent: Wednesday, June 24, 2020 5:39 PM > To: Tasnim Bashar ; dev@dpdk.org > Cc: harini.ramakrish...@microsoft.com; pallavi.ka...@intel.com; > ocard...@microsoft.com; navas...@linux.microsoft.com; > dmitry.kozl...@gmail.com; Tal Shnaiderman ; Fady &g

[dpdk-dev] [PATCH v5] eal/windows: fix thread handle

2020-06-25 Thread 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-by: Tasnim Bashar --- lib/librte_eal/windows