Re: [vpp-dev] VPP API Synchronization Question

2017-02-11 Thread Dave Barach (dbarach)
Dear Jon, Yeah, without clib_time_init(...) the wheels will fall off. I should toss in a couple of ASSERTs to make that problem totally obvious. vpp_api_test is a simple test tool constructed for no purpose more noble than testing vpp-side message-handlers. I’ve recently fiddled such that vpp i

Re: [vpp-dev] VPP API Synchronization Question

2017-02-10 Thread Jon Loeliger
On Fri, Feb 10, 2017 at 11:23 AM, Dave Barach (dbarach) wrote: > Dear Jon, > > > > If you send “please dump X” API message(s), followed by a control-ping > message: when the control-ping reply appears, all of dump reply messages > (if any) have appeared. > > > > That absolutely *does* work. See a

Re: [vpp-dev] VPP API Synchronization Question

2017-02-10 Thread Dave Barach (dbarach)
Dear Jon, If you send “please dump X” API message(s), followed by a control-ping message: when the control-ping reply appears, all of dump reply messages (if any) have appeared. That absolutely does work. See api_format.c:api_ip_add_del_route(...). In standard usage, the messages are received

[vpp-dev] VPP API Synchronization Question

2017-02-10 Thread Jon Loeliger
Folks, I have a stale cache of interface data in the layer above my VPP API calls and I need to refresh it. So I wrote a vpp_intf_refresh_all() function. It looks roughly like this: vpp_intf_refresh_all() { if (intf data is not dirty) return; for each is_ipv6 in {0,1} {