timer0 callback. 8< */
| 24 | |
| 25 | /* timer0 callback. 8< */ |
| 26 | static void |
| 27 | timer0_cb(__rte_unused struct rte_timer *tim, |
| 28 | __rte_unused void *arg) |
| 29 | { |
| 30 | static unsigned counter = 0; |
| 31 | unsigned lcore_id = rte_lcore_id(); |
| 32 | |
| 33 | printf("%s() on lcore %u\n", __func__, lcore_id); |
| 34 | |
| 35 | /* this timer is automatically reloaded until we decide to |
| 36 | * stop it, when counter reaches 20. */ |
| 37 | if ((counter ++) == 20) |
| 38 | rte_timer_stop(tim); |
| 39 | } |
| 40 | /* >8 End of timer0 callback. */ |
| 41 | |
| 42 | /* timer1 callback. 8< */ |
nothing calls this directly
no test coverage detected