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: You receive all messages sent to this group.

View/Reply Online (#12241): https://lists.fd.io/g/vpp-dev/message/12241
Mute This Topic: https://lists.fd.io/mt/29749976/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


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.fd.io ( http://lists.fd.io/ ) (2019-02-12 18:28:33)

> 
>   Thanks for your reply. I am going to send my own customized message for
> my
>   plugin. I noticed that there are two approaches to send messages: some
>   messages like vapi_msg_show_version use vapi_send() and some message
> like
>   vapi_msg_sw_interface_dump use vapi_sw_interface_dump to send the
> message.
>   Are these two approaches applicable to any message?
> 
>   Regards,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12240): https://lists.fd.io/g/vpp-dev/message/12240
Mute This Topic: https://lists.fd.io/mt/29749976/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


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- 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_send(ctx,msg)
> 
>Actually, I dont receive any ERR from vapi_send() however the message is
>not received to the vpp (I check it by api trace save/dump). Did I miss
>something ?
> 
>Any help is very welcomed.
> 
>Kind Regards,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12239): https://lists.fd.io/g/vpp-dev/message/12239
Mute This Topic: https://lists.fd.io/mt/29749976/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Question about crypto dev queue pairs #vpp

2019-02-12 Thread Sergio G.M.
Hi Manuel,

Thanks for reporting back.

Cheers,
Sergio

On Tue, Feb 12, 2019 at 5:14 PM  wrote:

> Hi Sergio,
>
> ipsec is actually working(therefore also your patch), my issue was
> regarding dpdk and hw setup.
>
> BR,
> Manuel -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#12237): https://lists.fd.io/g/vpp-dev/message/12237
> Mute This Topic: https://lists.fd.io/mt/29538345/682142
> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1498673
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [
> sergio.gonzalez.mon...@outlook.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12238): https://lists.fd.io/g/vpp-dev/message/12238
Mute This Topic: https://lists.fd.io/mt/29538345/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Question about crypto dev queue pairs #vpp

2019-02-12 Thread manuel . alonso
Hi Sergio,

ipsec is actually working(therefore also your patch), my issue was regarding 
dpdk and hw setup.

BR,
Manuel
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12237): https://lists.fd.io/g/vpp-dev/message/12237
Mute This Topic: https://lists.fd.io/mt/29538345/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] vapi msg send

2019-02-12 Thread Luca Muscariello via Lists.Fd.Io
According to Ole

 

https://lists.fd.io/g/vpp-dev/message/10481?p=,,,20,0,0,0::relevance,,vapi,20,2,0,25510961

 

 

What deb package contains vapi_c_gen.py and vapi_cpp_gen.py?

 

For those who wants to generate C api for an external VPP plugin w/o checking 
out the

whole vpp tree.

 

Thanks

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,

 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_send(ctx,msg)

Actually, I dont receive any ERR from vapi_send() however the message is not 
received to the vpp (I check it by api trace save/dump). Did I miss something ?

Any help is very welcomed.

Kind Regards, 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12236): https://lists.fd.io/g/vpp-dev/message/12236
Mute This Topic: https://lists.fd.io/mt/29749976/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[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_send(ctx,msg)

Actually, I dont receive any ERR from vapi_send() however the message is not 
received to the vpp (I check it by *api trace save/dump* ). Did I miss 
something ?

Any help is very welcomed.

Kind Regards,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12234): https://lists.fd.io/g/vpp-dev/message/12234
Mute This Topic: https://lists.fd.io/mt/29749976/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] vapi and bapi

2019-02-12 Thread mhemmatp via Lists.Fd.Io
Hello everyone,

 I am a newbie to vpp. I am going to figure out the differences between vapi 
and bapi. Moreover, which approach is recommended in a client application?
 
I appreciate if you help me on this.

Kind Regards,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12232): https://lists.fd.io/g/vpp-dev/message/12232
Mute This Topic: https://lists.fd.io/mt/29749874/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] ipsec AH+ESP

2019-02-12 Thread saint_sun 孙 via Lists . Fd . Io
hi all,
how can I configure ipsec to support AH+ESP mode? I used 
"ipsec_sa_add_del_command_fn" command to configure one AH sa and one ESP sa, 
then I  used "ipsec_policy_add_del_command_fn" command to apply the sa, but I 
only saw the AH-encapsulated packet that passing through the device. 




best regards,
saint_sun -=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12231): https://lists.fd.io/g/vpp-dev/message/12231
Mute This Topic: https://lists.fd.io/mt/29748014/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-