Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-03 Thread Somnath Kotur
Hello Keith/Anatoly, Another strange thing, it appears that if i keep a breakpoint (using gdb) on my async intr handler(bnxt_int_handler), then it seems to hit it (after the alarm callback is invoked first) and then i can see both this alarm going off every 2s and those async/i

Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-02 Thread Somnath Kotur
Hi Anatoly/keith, I just tried using rte_eal_alarm_set() in the driver like so: rte_eal_alarm_set(US_PER_S * 2, timer0_cb, (void *)data); The moment i start this off, i stop getting async events/interrupt notifications in my driver ...I'm hitting the same problem as it was be

Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-02 Thread Somnath Kotur
Thank you Anatoly and keith for your replies. What i still don't get is why the two cannot seem to co-exist? That is , whenever this while loop was running in the EAL thread that i showed in the code, my driver would stop receiving interrupts/async events ...Do we understand that? But you are righ

Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-02 Thread Wiles, Keith
> On Nov 2, 2018, at 9:35 AM, Wiles, Keith wrote: > > Sorry, meant to hit cancel for my previous email, Anatoly answered it correctly. Regards, Keith

Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-02 Thread Wiles, Keith
> On Nov 2, 2018, at 6:31 AM, Burakov, Anatoly > wrote: > > On 02-Nov-18 4:00 AM, Somnath Kotur wrote: >> Hello, >>I'm trying to launch a thread - lcore_mainloop( from >> examples/timer/main.c ) that runs rte_manage_timer() every 2s from testpmd >> to ensure the timers i've registered

Re: [dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-02 Thread Burakov, Anatoly
On 02-Nov-18 4:00 AM, Somnath Kotur wrote: Hello, I'm trying to launch a thread - lcore_mainloop( from examples/timer/main.c ) that runs rte_manage_timer() every 2s from testpmd to ensure the timers i've registered in my driver are checked for expiry ( i even tried putting this thread in

[dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-01 Thread Somnath Kotur
On Fri, Nov 2, 2018 at 9:30 AM Somnath Kotur wrote: > Hello, >I'm trying to launch a thread - lcore_mainloop( from > examples/timer/main.c ) that runs rte_manage_timer() every 2s from testpmd > to ensure the timers i've registered in my driver are checked for expiry ( > i even tried putt

[dpdk-dev] Question about rte_manage_timer() and eal_intr_handle_interrupts

2018-11-01 Thread Somnath Kotur
Hello, I'm trying to launch a thread - lcore_mainloop( from examples/timer/main.c ) that runs rte_manage_timer() every 2s from testpmd to ensure the timers i've registered in my driver are checked for expiry ( i even tried putting this thread in my driver as well, no difference in results