mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
AF_XDP-interaction: Remove hack that started tv_nsec as zero
When interval goes below 1 sec this hack screwup first clock_nanosleep. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
This commit is contained in:
@@ -1230,8 +1230,7 @@ static void tx_cyclic_and_rx_process(struct config *cfg,
|
||||
|
||||
next = now;
|
||||
next.tv_sec += interval.tv_sec;
|
||||
// next.tv_nsec += interval.tv_nsec;
|
||||
next.tv_nsec = 0;
|
||||
next.tv_nsec += interval.tv_nsec;
|
||||
tsnorm(&next);
|
||||
next_adj = next; /* Not adjusted yet */
|
||||
|
||||
|
Reference in New Issue
Block a user