[dpdk-dev] [PATCH v5] eal: add generic thread-local-storage functions

2020-12-26 Thread Tal Shnaiderman
Add support for tls functionality in EAL. The following functions are added: rte_thread_tls_create_key - function to create a tls data key. rte_thread_tls_delete_key - function to delete a tls data key. rte_thread_tls_set_value - function to set value bound to the tls key rte_thread_tls_get_value

[dpdk-dev] [PATCH] mlx5: split multi-threaded flows per OS

2020-12-26 Thread Tal Shnaiderman
multi-threaded flows feature uses pthread function pthread_key_create but for Windows the destruction option in the function is unimplemented. to resolve it Windows will implement destruction mechanism to cleanup mlx5_flow_workspace object for each terminated thread. Linux flow will keep the curr

[dpdk-dev] [PATCH 1/2] pdump: use rte_pktmbuf_free bulk

2020-12-26 Thread Stephen Hemminger
Use rte_pktmbuf_free_bulk instead of loop when freeing packets. Signed-off-by: Stephen Hemminger --- app/pdump/main.c | 8 lib/librte_pdump/rte_pdump.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/pdump/main.c b/app/pdump/main.c index b34bf3

[dpdk-dev] [PATCH 2/2] pdump: replace DEVICE_ID_SIZE with RTE_DEV_NAME_MAX_LEN

2020-12-26 Thread Stephen Hemminger
The device string has an existing size in rte_dev.h use that instead of defining our own. Signed-off-by: Stephen Hemminger --- lib/librte_pdump/rte_pdump.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/librte_pdump/rte_pdump.c b/lib/librte_pdump/rte_pdump.