Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-08 Thread Florin Coras
Hi Venu, Probably going through [2] lower would be advisable at this point as you’ll find more info there. LDP can only be used when the application is ld_preload-able and it works by intercepting app syscalls and redirecting them to vcl. Note that even if the app is ld_preloade-able, the ld

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-08 Thread Venumadhav Josyula
Also does either are independent or require vpp host stack ? Thanks and regards Venu On Tue, 8 Dec, 2020, 9:13 pm Venumadhav Josyula, wrote: > Hi Florin, > > What's difference between ldp and direct vcl ? I mean in terms of use > cases > > Thanks and Regards > Venu > > On Tue, 8 Dec, 2020, 8:47

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-08 Thread Venumadhav Josyula
Hi Florin, What's difference between ldp and direct vcl ? I mean in terms of use cases Thanks and Regards Venu On Tue, 8 Dec, 2020, 8:47 pm Florin Coras, wrote: > Hi Venu, > > Those are used for ldp tests. That is, they use normal sockets which go > through our ldp (LD_PRELOAD) shim and eventu

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-08 Thread Florin Coras
Hi Venu, Those are used for ldp tests. That is, they use normal sockets which go through our ldp (LD_PRELOAD) shim and eventually through vcl. vcl_test_client and vcl_test_server are the tests that use vcl directly. Regards, Florin > On Dec 8, 2020, at 2:11 AM, Venumadhav Josyula wrote: >

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-08 Thread Venumadhav Josyula
Hi Florin, The below are vcl based, my understanding it is based normal sockets build-root/rpmbuild/vpp-21.01/src/plugins/hs_apps/vcl/sock_test.h build-root/rpmbuild/vpp-21.01/src/plugins/hs_apps/vcl/sock_test_client.c build-root/rpmbuild/vpp-21.01/src/plugins/hs_apps/vcl/sock_test_server.c These

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-07 Thread Florin Coras
Hi Venu, You’ll find documentation regarding the host stack in general and vcl in particular here [1] (see for instance [2]). As for code examples, check here [3] the vcl test client/server apps. Regards, Florin [1] https://wiki.fd.io/view/VPP/HostStack

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-07 Thread Venumadhav Josyula
Hi Florin, This is nothing to do with the subject being discussed. Can you please direct me to the following i) example(s) of VCL ? ii) Any tutorial explaining the working of VCL ? Thanks & Regards, Venu On Fri, 4 Dec 2020 at 01:28, Florin Coras wrote: > Hi Ravi, > > VCL is not part of the vp

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-07 Thread RaviKiran Veldanda
Hi Florin/Team of experts, I have one more question, The basic requirement we have is We have to send some data from our application to our own plugin. While going through previous messages and documentation, we found we can use memif or quick sockets. Our question is, do we have any other VPP pro

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-03 Thread Florin Coras
Hi Ravi, VCL is not part of the vpp app/process, it’s a library that applications can link against to be able to interact with the session layer in a more posix-like manner. So if your app needs a binary api connection to vpp, it needs to set it up independent of vcl. With regard to the “vpe

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-03 Thread RaviKiran Veldanda
Hi Florin, Thanks for your response, however I have a question, If I want to use another Binary API initialization do we need to do at our Application or in VPP code. When I check VPP source code, the initialization always with "vpe-api" vpe_api_init calls always vl_set_memory_region_name ("/vpe-a

Re: [vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-02 Thread Florin Coras
Hi Ravi, By default, vcl relies on the binary api to attach to the session layer in vpp. It is possible to initialize another binary api connection from your app, apart from the one transparently created by vcl, but it requires some careful non-default initialization of a series of data struct

[vpp-dev] vppcom and binary api #binapi #vapi #vppcom

2020-12-02 Thread RaviKiran Veldanda
Hi Team, We have our application which uses VPPCOM sessions to read and write some packets. We have one more requirement that Application uses Vpp-binary api and provide some information to our own plugin. When we try calling this binary apis without VPPCOM session started or running, the VPP Bi