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

Function swtim_stop

dpdk/lib/eventdev/rte_event_timer_adapter.c:1090–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090static int
1091swtim_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
1107static void
1108swtim_get_info(const struct rte_event_timer_adapter *adapter,

Callers

nothing calls this directly

Calls 4

swtim_pmd_privFunction · 0.85
rte_pauseFunction · 0.50

Tested by

no test coverage detected