Re: [vpp-dev] echo server crash with my certs/self signed cert. (tls uri)

2019-07-23 Thread Praveen Kariyanahalli
I havent changed anything in the listener handler (this is latest vpp code as is). Just changed the certs thats all. I will sprinkle debugs and run it under gdb and get back to u. Thanks! ᐧ On Tue, Jul 23, 2019, 10:43 PM Florin Coras wrote: > Hi Praveen, > > It looks like the tls listener was

Re: [vpp-dev] echo server crash with my certs/self signed cert. (tls uri)

2019-07-23 Thread Florin Coras
Hi Praveen, It looks like the tls listener was not properly initialized. I’d recommend running a debug image from gdb to get more info. Probably openssl complained about the parameters on listen but the error was not handled. If I’m right, this [1] should better handle the failed listen. Fl

[vpp-dev] echo server crash with my certs/self signed cert. (tls uri)

2019-07-23 Thread Praveen Kariyanahalli
Hi All I replaced the testca/certs with my CA chain (self signed) and my server client certs. When I run it I am seeing some weird assert on the server side. Can anyone please throw some light on this? Thanks in advance Praveen Jul 24 04:56:11 myvpp1 vnet[1299]: /home/pk/vpp/src/plugins/tlsopens

Re: [vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform.

2019-07-23 Thread Dave Barach via Lists.Fd.Io
Again, based on minimal information, here’s one possibility: Passive f64 expiration timer in the session object. Maintain a [per thread?] LRU list. See src/vppinfra/llist.h. Each time traffic hits a session, remove it from the LRU list, re-add it to the end of the LRU list, and set the expiratio

Re: [vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform.

2019-07-23 Thread Ashish Prajapati
Hi Dave, The Aim is to check all the available sessions every 30secs and delete the inactive ones along with the corresponding hash entries. Please suggest what can be the best way to achieve this. Thanks, Ashish -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/R

Re: [vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform.

2019-07-23 Thread Dave Barach via Lists.Fd.Io
Please https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/vlib.html, scroll down to Process / thread model and read through “Process events.” This shows how to start a lightweight (data-plane) thread which can wake up every N seconds and do something. This may not be the exact

Re: [vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform.

2019-07-23 Thread Ashish Prajapati
Hi Dave, Thanks for the quick reply, interval x = 30secs and code will be running in the dataplane (in my_plugin) Regards, Ashish -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13548): https://lists.fd.io/g/vpp-dev/message/13548 Mute This Topic: ht

Re: [vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform.

2019-07-23 Thread Dave Barach via Lists.Fd.Io
Need more detail: what is the interval x? 10 seconds, 10 microseconds, etc.? Is the code running in process context on thread 0, or in the data plane? D. From: vpp-dev@lists.fd.io On Behalf Of Ashish Prajapati Sent: Tuesday, July 23, 2019 7:50 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] To tr

[vpp-dev] To trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform.

2019-07-23 Thread Ashish Prajapati
Hi, Need to trigger a callback function in a regular x interval, looking for a sample timer API usage test program in VPP platform. Any reference would be helpful. Thanks, Ashish -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13546): https://list

[vpp-dev] Reminder: 19.08 API freeze is next wednesday!

2019-07-23 Thread Andrew Yourtchenko
Hi all, we are approaching the API freeze milestone next wednesday, so a friendly reminder to get your patches with API changes in. After 18:00 UTC next wednesday 31 July 2019 we will only be accepting the low-risk changes on the master branch, according to our release schedule for 19.08, as liste

Re: [vpp-dev] FAQ or Documentation request

2019-07-23 Thread Damjan Marion via Lists.Fd.Io
> On 22 Jul 2019, at 20:11, Brian Dickson wrote: > > Speaking mostly as a user, there is some really important information needed > for using VPP, which is not documented (at all, or at least anywhere that can > be found). > > I would like to make a request that someone take up this request