dpdk: correct waiting times 07/40407/2
authorGeorgy Borodin <[email protected]>
Wed, 28 Feb 2024 16:04:44 +0000 (17:04 +0100)
committerDamjan Marion <[email protected]>
Tue, 5 Mar 2024 18:53:01 +0000 (18:53 +0000)
commit904459ff32ffce73b97dd3cb40f0b367a6b558f9
tree5151e6190448302f553b27fb01df654ac7926edc
parent29e916a07c31d63ed6935354b99f16743842fdc6
dpdk: correct waiting times

When link state interval is 3 and stats interval is 10, updates
for stats will be made every 12 seconds (next number after 10,
that divisible by 3). And if you get counters every 30 secs, you
will get ideal "saw"-line instead of real smooth chart.

This commit makes smooth line on stats intervals that are divisors
of the charts update interval (regardless of link state interval),
and makes it possible to configure them.

Type: fix
Fixes: cb9cadad578297ffd78fa8a33670bdf1ab669e7e
Change-Id: Ia4350467be2b0ec0c1be37c7fda63f43b3330f44
Signed-off-by: Georgy Borodin <[email protected]>
src/plugins/dpdk/device/dpdk.h
src/plugins/dpdk/device/init.c