Re: [dpdk-dev] Segm fault to the update acl context

2017-03-30 Thread Victor Detoni
Hi, I have tried to use rcu and rte_lock libs to synchronize but I put the ctx_reload before rte_acl_classify function and it is working fine. My code is working like this and I'm not having latency during reload process. while() { ... if (acl_ctx_reload) do_acl_reload(); if (acl_search.n

Re: [dpdk-dev] Segm fault to the update acl context

2017-03-27 Thread Ananyev, Konstantin
> > Hi Konstantin, > > Thank you for your questions. Please find below a sample of my code: > > After the program has started, I send sighup signals to update the acl > context, like this: > > if (signup == SIGHUP) >   use_acl_ctx_swap = 1; > ... > During the SIGHUP processes I create a new/

Re: [dpdk-dev] Segm fault to the update acl context

2017-03-27 Thread Victor Detoni
Hi Konstantin, Thank you for your questions. Please find below a sample of my code: After the program has started, I send sighup signals to update the acl context, like this: if (signup == SIGHUP) use_acl_ctx_swap = 1; ... During the SIGHUP processes I create a new/swap acl ctx and data struct

Re: [dpdk-dev] Segm fault to the update acl context

2017-03-27 Thread Ananyev, Konstantin
Hi Victor, > hello, > > I'm running l3fwd-acl example as a daemon and trying to update acl context > with as a "swap" acl context, but the program stops with a segment fault > statement. Even using variables to direct which acl context the main loop > has to use, the program breaks. > > I have n

[dpdk-dev] Segm fault to the update acl context

2017-03-26 Thread Victor Detoni
hello, I'm running l3fwd-acl example as a daemon and trying to update acl context with as a "swap" acl context, but the program stops with a segment fault statement. Even using variables to direct which acl context the main loop has to use, the program breaks. I have noticed that even when I upda