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
vdpa/mlx5: fix notification timing
[dpdk.git]
/
lib
/
librte_pipeline
/
rte_pipeline.c
diff --git
a/lib/librte_pipeline/rte_pipeline.c
b/lib/librte_pipeline/rte_pipeline.c
index
1b331f4
..
f5f397d
100644
(file)
--- a/
lib/librte_pipeline/rte_pipeline.c
+++ b/
lib/librte_pipeline/rte_pipeline.c
@@
-178,8
+178,7
@@
rte_pipeline_check_params(struct rte_pipeline_params *params)
}
/* socket */
}
/* socket */
- if ((params->socket_id < 0) ||
- (params->socket_id >= RTE_MAX_NUMA_NODES)) {
+ if (params->socket_id < 0) {
RTE_LOG(ERR, PIPELINE,
"%s: Incorrect value for parameter socket_id\n",
__func__);
RTE_LOG(ERR, PIPELINE,
"%s: Incorrect value for parameter socket_id\n",
__func__);
@@
-215,7
+214,7
@@
rte_pipeline_create(struct rte_pipeline_params *params)
}
/* Save input parameters */
}
/* Save input parameters */
- s
nprintf(p->name, RTE_PIPELINE_MAX_NAME_SZ, "%s", params->name
);
+ s
trlcpy(p->name, params->name, RTE_PIPELINE_MAX_NAME_SZ
);
p->socket_id = params->socket_id;
p->offset_port_id = params->offset_port_id;
p->socket_id = params->socket_id;
p->offset_port_id = params->offset_port_id;
@@
-347,7
+346,7
@@
rte_pipeline_table_create(struct rte_pipeline *p,
/* Allocate space for the default table entry */
entry_size = sizeof(struct rte_pipeline_table_entry) +
params->action_data_size;
/* Allocate space for the default table entry */
entry_size = sizeof(struct rte_pipeline_table_entry) +
params->action_data_size;
- default_entry =
(struct rte_pipeline_table_entry *)
rte_zmalloc_socket(
+ default_entry = rte_zmalloc_socket(
"PIPELINE", entry_size, RTE_CACHE_LINE_SIZE, p->socket_id);
if (default_entry == NULL) {
RTE_LOG(ERR, PIPELINE,
"PIPELINE", entry_size, RTE_CACHE_LINE_SIZE, p->socket_id);
if (default_entry == NULL) {
RTE_LOG(ERR, PIPELINE,