* Pipeline */
| 157 | * Pipeline |
| 158 | */ |
| 159 | static int |
| 160 | rte_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 | |
| 186 | struct rte_pipeline * |
| 187 | rte_pipeline_create(struct rte_pipeline_params *params) |
no outgoing calls
no test coverage detected