Skip to content

Commit fbd5b1e

Browse files
committed
Modify usleep to rte_delay_us_sleep.
The minimum timeout unit of epoll_wati in interrupt mode is 1ms, which is not applicable to F-Stack and is abandoned directly.
1 parent 1f4ff56 commit fbd5b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ff_dpdk_if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@ main_loop(void *arg)
21812181

21822182
idle_sleep_tsc = rte_rdtsc();
21832183
if (likely(idle && idle_sleep)) {
2184-
usleep(idle_sleep);
2184+
rte_delay_us_sleep(idle_sleep);
21852185
end_tsc = rte_rdtsc();
21862186
} else {
21872187
end_tsc = idle_sleep_tsc;

0 commit comments

Comments
 (0)