[PATCH v2] examples/link_status_interrupt: fix stats refresh rate

Thomas Monjalon thomas at monjalon.net
Fri Jul 8 16:47:12 CEST 2022


07/07/2022 10:22, Omar Awaysa:
> From: Raja Zidane <rzidane at nvidia.com>
> 
> TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond,
> current definition is correct for cores with frequency of 2GHZ, for cores
> with different frequency, it caused different periods between refresh,
> (i.e. the definition is about 14ms on ARM cores).
> 
> Use dpdk API to get CPU frequency, to define TIMER_MILLISECOND.
> 
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Omar Awaysa <omara at nvidia.com>

Applied (with indent fixed), thanks.





More information about the stable mailing list