Go to file
Vadim Suraev 57f0ba5f8b timer: fix pending counter
Bug: When a timer is running
 - if rte_timer_stop is called, the pending decrement is
 skipped (decremented only if the timer is pending) and due
 to the update flag the future processing is skipped so the
 timer is counted as pending while it is stopped. - the same
 applies when rte_timer_reset is called but then the pending
 statistics is additionally incremented so the timer is
 counted pending twice.
Solution: decrement the pending
 statistics after returning from the callback. If
 rte_timer_stop was called, it skipped decrementing the
 pending statistics. If rte_time_reset was called, the
 pending statistics was incremented. If neither was called
 and the timer is periodic, the pending statistics is
 incremented when it is reloaded

Signed-off-by: Vadim Suraev <vadim.suraev@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2014-05-26 18:22:04 +02:00
app sched: use malloc instead of memzone for allocation 2014-05-22 16:13:30 +02:00
config config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
doc config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
examples config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
lib timer: fix pending counter 2014-05-26 18:22:04 +02:00
mk mk: fix linking drivers in static apps 2014-05-23 18:01:53 +02:00
pkg config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
scripts config: rename "default" configurations as "native" 2014-05-21 16:25:06 +02:00
tools tools: rename pci_unbind script 2014-03-20 17:50:51 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile add FreeBSD support 2014-02-25 21:29:18 +01:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
Makefile add FreeBSD support 2014-02-25 21:29:18 +01:00