X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fmlx5%2Fwindows%2Fmlx5_flow_os.c;h=c4d57907267623dd8a4d13689aea924963c5c5cd;hb=05b405d581486651305551a9f7295f40388d95db;hp=2cc02df3223065c778c97164b6fd905e3e933ec4;hpb=5d55a494f4e62f29d945cf6c9ec1d0980a72642f;p=dpdk.git diff --git a/drivers/net/mlx5/windows/mlx5_flow_os.c b/drivers/net/mlx5/windows/mlx5_flow_os.c index 2cc02df322..c4d5790726 100644 --- a/drivers/net/mlx5/windows/mlx5_flow_os.c +++ b/drivers/net/mlx5/windows/mlx5_flow_os.c @@ -252,7 +252,7 @@ struct mlx5_workspace_thread { */ static struct mlx5_workspace_thread *curr; static struct mlx5_workspace_thread *first; -rte_tls_key ws_tls_index; +rte_thread_key ws_tls_index; static pthread_mutex_t lock_thread_list; static bool @@ -329,7 +329,7 @@ mlx5_flow_os_release_workspace(void) flow_release_workspace(first->mlx5_ws); free(first); } - rte_thread_tls_key_delete(ws_tls_index); + rte_thread_key_delete(ws_tls_index); pthread_mutex_destroy(&lock_thread_list); } @@ -368,7 +368,7 @@ mlx5_add_workspace_to_list(struct mlx5_flow_workspace *data) int mlx5_flow_os_init_workspace_once(void) { - int err = rte_thread_tls_key_create(&ws_tls_index, NULL); + int err = rte_thread_key_create(&ws_tls_index, NULL); if (err) { DRV_LOG(ERR, "Can't create flow workspace data thread key."); @@ -381,7 +381,7 @@ mlx5_flow_os_init_workspace_once(void) void * mlx5_flow_os_get_specific_workspace(void) { - return rte_thread_tls_value_get(ws_tls_index); + return rte_thread_value_get(ws_tls_index); } int @@ -391,7 +391,7 @@ mlx5_flow_os_set_specific_workspace(struct mlx5_flow_workspace *data) int old_err = rte_errno; rte_errno = 0; - if (!rte_thread_tls_value_get(ws_tls_index)) { + if (!rte_thread_value_get(ws_tls_index)) { if (rte_errno) { DRV_LOG(ERR, "Failed checking specific workspace."); rte_errno = old_err; @@ -409,7 +409,7 @@ mlx5_flow_os_set_specific_workspace(struct mlx5_flow_workspace *data) return -1; } } - if (rte_thread_tls_value_set(ws_tls_index, data)) { + if (rte_thread_value_set(ws_tls_index, data)) { DRV_LOG(ERR, "Failed setting specific workspace."); err = -1; }