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 structures.

So the simplest thing would be to use the new api exposed by the session layer. 
For that, in vpp’s startup.conf add “session { use-app-socket-api }” and in 
vcl.conf add  "app-socket-api /var/run/vpp/app_ns_sockets/default”. 

Note that this is a recent addition so it’s only available on vpp master. 

Regards,
Florin

> On Dec 2, 2020, at 7:49 PM, RaviKiran Veldanda <ravi.jup...@gmail.com> wrote:
> 
> 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 Binary APIs are working fine.
> When we try to call after VPPCOM session create then we are seeing our 
> application crash in VPP library.
> So we want to understand, if we are using VPPCOM session, is vpp binary api 
> not allowed to use?
> If that is true, do we have any other mechanism to call my plugin binary API? 
> I don't want to use CLI because these APIs will get call in fast path.
> Please advice us. 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18242): https://lists.fd.io/g/vpp-dev/message/18242
Mute This Topic: https://lists.fd.io/mt/78677945/21656
Mute #binapi:https://lists.fd.io/g/vpp-dev/mutehashtag/binapi
Mute #vapi:https://lists.fd.io/g/vpp-dev/mutehashtag/vapi
Mute #vppcom:https://lists.fd.io/g/vpp-dev/mutehashtag/vppcom
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to