| 284 | } |
| 285 | |
| 286 | int32_t |
| 287 | rte_service_component_unregister(uint32_t id) |
| 288 | { |
| 289 | uint32_t i; |
| 290 | struct rte_service_spec_impl *s; |
| 291 | SERVICE_VALID_GET_OR_ERR_RET(id, s, -EINVAL); |
| 292 | |
| 293 | rte_service_count--; |
| 294 | |
| 295 | s->internal_flags &= ~(SERVICE_F_REGISTERED); |
| 296 | |
| 297 | /* clear the run-bit in all cores */ |
| 298 | for (i = 0; i < RTE_MAX_LCORE; i++) |
| 299 | lcore_states[i].service_mask &= ~(UINT64_C(1) << id); |
| 300 | |
| 301 | memset(&rte_services[id], 0, sizeof(struct rte_service_spec_impl)); |
| 302 | |
| 303 | return 0; |
| 304 | } |
| 305 | |
| 306 | int32_t |
| 307 | rte_service_component_runstate_set(uint32_t id, uint32_t runstate) |