timer1 callback. 8< */
| 41 | |
| 42 | /* timer1 callback. 8< */ |
| 43 | static void |
| 44 | timer1_cb(__rte_unused struct rte_timer *tim, |
| 45 | __rte_unused void *arg) |
| 46 | { |
| 47 | unsigned lcore_id = rte_lcore_id(); |
| 48 | uint64_t hz; |
| 49 | |
| 50 | printf("%s() on lcore %u\n", __func__, lcore_id); |
| 51 | |
| 52 | /* reload it on another lcore */ |
| 53 | hz = rte_get_timer_hz(); |
| 54 | lcore_id = rte_get_next_lcore(lcore_id, 0, 1); |
| 55 | rte_timer_reset(tim, hz/3, SINGLE, lcore_id, timer1_cb, NULL); |
| 56 | } |
| 57 | /* >8 End of timer1 callback. */ |
| 58 | |
| 59 | static __rte_noreturn int |
nothing calls this directly
no test coverage detected