Re: [vpp-dev] vapi msg send

2019-02-14 Thread Alberto Compagno via Lists.Fd.Io
? Thanks, Alberto From: on behalf of "Luca Muscariello via Lists.Fd.Io" Reply-To: "lumuscar+f...@cisco.com" Date: Tuesday 12 February 2019 at 16:16 To: "Masoud Hemmatpour (mhemmatp)" , "vpp-dev@lists.fd.io" Cc: "vpp-dev@lists.fd.io" Subject: Re

Re: [vpp-dev] vapi msg send

2019-02-13 Thread Klement Sekera via Lists.Fd.Io
Your outlined procedure looks okay.. Maybe share some code? Quoting mhemmatp via Lists.Fd.Io (2019-02-12 22:30:34) >Klement,  thanks for your reply, our conversation was invisible to group I >posted it here. > >In general, in the procedure that I sent do you see a missing part to send

Re: [vpp-dev] vapi msg send

2019-02-12 Thread mhemmatp via Lists.Fd.Io
Klement,  thanks for your reply, our conversation was invisible to group I posted it here. In general, in the procedure that I sent do you see a missing part to send a message (1:1)? To me it is compliant with the example. I am using vapi_send() approach. Thanks, -=-=-=-=-=-=-=-=-=-=-=- Links:

Re: [vpp-dev] vapi msg send

2019-02-12 Thread mhemmatp via Lists.Fd.Io
the first message is a regular message (1:1 message and response) second one is a dump (1:n), standard way of doing dumps is to send the message followed by a control ping, then collect responses until the control ping reply comes back. this is what the api does for you Quoting mhemmatp via lists.

Re: [vpp-dev] vapi msg send

2019-02-12 Thread Klement Sekera via Lists.Fd.Io
What kind of message are you sending? You can take a look at /test/ext/vapi_c_test.c (or cpp) for example code. Quoting mhemmatp via Lists.Fd.Io (2019-02-12 15:07:12) > Hello all, > > I am going to use vapi to connect to a plugin in vpp. I am following this >instruction: > > 1- c

Re: [vpp-dev] vapi msg send

2019-02-12 Thread Luca Muscariello via Lists.Fd.Io
Luca From: on behalf of "mhemmatp via Lists.Fd.Io" Reply-To: "Masoud Hemmatpour (mhemmatp)" Date: Tuesday 12 February 2019 at 15:07 To: "vpp-dev@lists.fd.io" Cc: "vpp-dev@lists.fd.io" Subject: [vpp-dev] vapi msg send Hello all,

[vpp-dev] vapi msg send

2019-02-12 Thread mhemmatp via Lists.Fd.Io
Hello all,  I am going to use vapi to connect to a plugin in vpp. I am following this instruction:  1- connect to vpp and create the context (ctx)  1- allocating memory through the APIs (i.e., initializing the header of the message)  2- initializing the payload of the message (msg)  3- vapi_sen