build: print list of disabled components
[dpdk.git] / lib / librte_pipeline / rte_pipeline.c
index 1b331f4..f5f397d 100644 (file)
@@ -178,8 +178,7 @@ rte_pipeline_check_params(struct rte_pipeline_params *params)
        }
 
        /* 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__);
@@ -215,7 +214,7 @@ rte_pipeline_create(struct rte_pipeline_params *params)
        }
 
        /* Save input parameters */
-       snprintf(p->name, RTE_PIPELINE_MAX_NAME_SZ, "%s", params->name);
+       strlcpy(p->name, params->name, RTE_PIPELINE_MAX_NAME_SZ);
        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;
-       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,