| 1088 | } |
| 1089 | |
| 1090 | static int |
| 1091 | swtim_stop(const struct rte_event_timer_adapter *adapter) |
| 1092 | { |
| 1093 | int ret; |
| 1094 | struct swtim *sw = swtim_pmd_priv(adapter); |
| 1095 | |
| 1096 | ret = rte_service_component_runstate_set(sw->service_id, 0); |
| 1097 | if (ret < 0) |
| 1098 | return ret; |
| 1099 | |
| 1100 | /* Wait for the service to complete its final iteration */ |
| 1101 | while (rte_service_may_be_active(sw->service_id)) |
| 1102 | rte_pause(); |
| 1103 | |
| 1104 | return 0; |
| 1105 | } |
| 1106 | |
| 1107 | static void |
| 1108 | swtim_get_info(const struct rte_event_timer_adapter *adapter, |
nothing calls this directly
no test coverage detected