numam-dpdk/lib
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
..
librte_cmdline cmdline: fix infinite loop after EOF 2014-05-26 17:16:39 +02:00
librte_eal kni: fix build on Fedora 18 with kernel 3.6.10 2014-05-22 16:30:28 +02:00
librte_ether ethdev: remove rte_pmd_init_all function 2014-05-20 14:28:26 +02:00
librte_hash hash: make arg for jhash2 const 2014-03-24 18:58:25 +01:00
librte_ivshmem ivshmem: fix build 2014-05-19 14:59:56 +02:00
librte_kni spelling fixes 2014-05-16 16:02:55 +02:00
librte_kvargs devargs: use a comma instead of semicolon to separate key/values 2014-04-10 15:50:11 +02:00
librte_lpm update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
librte_malloc add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
librte_mbuf add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
librte_mempool mempool: add iterator function 2014-05-16 16:02:55 +02:00
librte_meter update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
librte_net app/testpmd: add engine that replies to ARP and ICMP echo requests 2014-05-16 13:25:16 +02:00
librte_pmd_e1000 igb: fix indentation of previous patchset 2014-05-21 13:31:13 +02:00
librte_pmd_ixgbe ixgbevf: convert to use of PMD_REGISTER_DRIVER and fix linking 2014-05-20 14:28:17 +02:00
librte_pmd_pcap eal: make vdev init path generic for both virtual and pci devices 2014-05-20 14:28:16 +02:00
librte_pmd_ring eal: make vdev init path generic for both virtual and pci devices 2014-05-20 14:28:16 +02:00
librte_pmd_virtio virtio: convert to use of PMD_REGISTER_DRIVER and fix linking 2014-05-20 14:28:17 +02:00
librte_pmd_vmxnet3 vmxnet3: convert to use of PMD_REGISTER_DRIVER and fix linking 2014-05-20 14:28:17 +02:00
librte_pmd_xenvirt eal: make vdev init path generic for both virtual and pci devices 2014-05-20 14:28:16 +02:00
librte_power update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
librte_ring add FILE argument to debug functions 2014-05-16 16:02:55 +02:00
librte_sched sched: fix grinder bug 2014-05-22 16:14:36 +02:00
librte_timer timer: fix pending counter 2014-05-26 18:22:04 +02:00
Makefile kvargs: add a new library to parse key/value arguments 2014-02-26 11:01:13 +01:00