git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: allocate list memory in create function
[dpdk.git]
/
drivers
/
net
/
mlx5
/
linux
/
mlx5_flow_os.c
diff --git
a/drivers/net/mlx5/linux/mlx5_flow_os.c
b/drivers/net/mlx5/linux/mlx5_flow_os.c
index
732b1b2
..
893f00b
100644
(file)
--- a/
drivers/net/mlx5/linux/mlx5_flow_os.c
+++ b/
drivers/net/mlx5/linux/mlx5_flow_os.c
@@
-7,12
+7,12
@@
#include <rte_thread.h>
/* Key of thread specific flow workspace data. */
#include <rte_thread.h>
/* Key of thread specific flow workspace data. */
-static rte_t
ls
_key key_workspace;
+static rte_t
hread
_key key_workspace;
int
mlx5_flow_os_init_workspace_once(void)
{
int
mlx5_flow_os_init_workspace_once(void)
{
- if (rte_thread_
tls_
key_create(&key_workspace, flow_release_workspace)) {
+ if (rte_thread_key_create(&key_workspace, flow_release_workspace)) {
DRV_LOG(ERR, "Can't create flow workspace data thread key.");
return -ENOMEM;
}
DRV_LOG(ERR, "Can't create flow workspace data thread key.");
return -ENOMEM;
}
@@
-22,17
+22,17
@@
mlx5_flow_os_init_workspace_once(void)
void *
mlx5_flow_os_get_specific_workspace(void)
{
void *
mlx5_flow_os_get_specific_workspace(void)
{
- return rte_thread_
tls_
value_get(key_workspace);
+ return rte_thread_value_get(key_workspace);
}
int
mlx5_flow_os_set_specific_workspace(struct mlx5_flow_workspace *data)
{
}
int
mlx5_flow_os_set_specific_workspace(struct mlx5_flow_workspace *data)
{
- return rte_thread_
tls_
value_set(key_workspace, data);
+ return rte_thread_value_set(key_workspace, data);
}
void
mlx5_flow_os_release_workspace(void)
{
}
void
mlx5_flow_os_release_workspace(void)
{
- rte_thread_
tls_
key_delete(key_workspace);
+ rte_thread_key_delete(key_workspace);
}
}