Re: [dpdk-dev] [PATCH v2] eal: optimize timer routines

2017-05-05 Thread Thomas Monjalon
02/05/2017 07:19, Jerin Jacob: > Since DPDK has only two timer sources, > Avoid &eal_timer_source memory read and followed > by the switch case statement when > RTE_LIBEAL_USE_HPET is not defined. > > Signed-off-by: Jerin Jacob It is not a fix but it is simple and safe enough to be in 17.05-rc4.

[dpdk-dev] [PATCH v2] eal: optimize timer routines

2017-05-01 Thread Jerin Jacob
Since DPDK has only two timer sources, Avoid &eal_timer_source memory read and followed by the switch case statement when RTE_LIBEAL_USE_HPET is not defined. Signed-off-by: Jerin Jacob --- v2: - Rearrage the ifdef to avoiding the #else part by "unifdef" the first occurence of rte_get_tsc_cycles(T