MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_pipeline_check_params

Function rte_pipeline_check_params

dpdk/lib/pipeline/rte_pipeline.c:159–184  ·  view source on GitHub ↗

* Pipeline */

Source from the content-addressed store, hash-verified

157 * Pipeline
158 */
159static int
160rte_pipeline_check_params(struct rte_pipeline_params *params)
161{
162 if (params == NULL) {
163 RTE_LOG(ERR, PIPELINE,
164 "%s: Incorrect value for parameter params\n", __func__);
165 return -EINVAL;
166 }
167
168 /* name */
169 if (params->name == NULL) {
170 RTE_LOG(ERR, PIPELINE,
171 "%s: Incorrect value for parameter name\n", __func__);
172 return -EINVAL;
173 }
174
175 /* socket */
176 if (params->socket_id < 0) {
177 RTE_LOG(ERR, PIPELINE,
178 "%s: Incorrect value for parameter socket_id\n",
179 __func__);
180 return -EINVAL;
181 }
182
183 return 0;
184}
185
186struct rte_pipeline *
187rte_pipeline_create(struct rte_pipeline_params *params)

Callers 1

rte_pipeline_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected