Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-30 Thread Chinmaya Aggarwal
Hi Ole, As suggested by you, we are trying vapi for our SRv6 use case, we were able to generate sr.api.json for sr.api using src/tools/vppapigen/generate_json.py. We then generated sr.api.vapi.h using src/vpp-api/vapi/vapi_c_gen.py. On going through sr.api.vapi.h, we found a function *vapi_set_

Re: Private: Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-26 Thread Dave Barach via lists.fd.io
ve From: Chinmaya Aggarwal Sent: Friday, June 26, 2020 7:59 AM To: Dave Barach (dbarach) Subject: Private: Re: [vpp-dev] VPP C API application compilation issue on using S and W functions Hi Dave, We have our application (using VPP C API) running outside of VPP. We linked vpp libs in our

Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-26 Thread Ole Troan
Chinmaya, I don't think linking in vatplugin is a "supported" interface. Meaning it can change or go away at no notice. If you build a C application you'd likely be happier with using VAPI. Cheers, Ole > On 26 Jun 2020, at 13:58, Chinmaya Aggarwal wrote: > > Hi Dave, > We have our application

Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-26 Thread Chinmaya Aggarwal
Hi Dave, We have our application (using VPP C API) running outside of VPP.  We linked vpp libs in our application ( vatplugin, vppinfra, vlibmemoryclient, svm, vppapiclient). Attaching file vpp_connect_test.c that creates connection with VPP and calls VPP C API to modify a sr policy. We have use

Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-25 Thread Chinmaya Aggarwal
Ok, and how can we use S and W functions in our application to send request and wait for reply? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16818): https://lists.fd.io/g/vpp-dev/message/16818 Mute This Topic: https://lists.fd.io/mt/75100285/2165

Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-25 Thread Dave Barach via lists.fd.io
vatplugin vppinfra Threads::Threads rt m dl crypto ) From: vpp-dev@lists.fd.io On Behalf Of Chinmaya Aggarwal Sent: Thursday, June 25, 2020 7:02 AM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] VPP C API application compilation issue on using S and W functions I am following fd.io wiki link

Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-25 Thread Chinmaya Aggarwal
I am following fd.io wiki link https://wiki.fd.io/view/VPP/How_To_Use_The_C_API It says so. Are we not suppose to link vlib? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16816): https://lists.fd.io/g/vpp-dev/message/16816 Mute This Topic: https://

Re: [vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-25 Thread Dave Barach via lists.fd.io
Why are you linking against vlib? From: vpp-dev@lists.fd.io On Behalf Of Chinmaya Aggarwal Sent: Thursday, June 25, 2020 6:48 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] VPP C API application compilation issue on using S and W functions Hi, We are testing VPP C API for our use case. We have

[vpp-dev] VPP C API application compilation issue on using S and W functions

2020-06-25 Thread Chinmaya Aggarwal
Hi, We are testing VPP C API for our use case. We have a scenario where we want to wait for the reply of our API request. For this, we are trying to use S and W functions defined in src/vlibapi/vat_helper_macros.h. But we get the following error on compiling our source code : - root@ggnlabvm-hn