Re: [vpp-dev] how VAT work with Socket IP Address

2019-08-29 Thread wei_sky2008
Thank you for your answer! I want to develop an app on an PC,and VPP run on another PC,my app use VPP API to config VPP。Is this way not feasible? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13873): https://lists.fd.io/g/vpp-dev/message/13873

[vpp-dev] how VAT work with Socket IP Address

2019-08-28 Thread wei_sky2008
I want use vpp_api_test with socket address,so I use commond like  this: ./vpp_api_test socket-name 192.168.1.16:5002 and I modify startup.conf like this: unix { cli-listen 192.168.1.16:5002 } socksvr{ socket-name 192.168.1.16:5002 } but it can't connect,why? Thank you !

[vpp-dev] how VAT work with Socket IP Address

2019-08-28 Thread wei_sky2008
[Edited Message Follows] I want to use vpp_api_test with socket address,so I use commond like  this: ./vpp_api_test socket-name 192.168.1.16:5002 and I modify startup.conf like this: unix { cli-listen 192.168.1.16:5002 } socksvr{ socket-name 192.168.1.16:5002 } VPP run on PC which IP is

[vpp-dev] how VAT work with Socket IP Address

2019-08-28 Thread wei_sky2008
[Edited Message Follows] I want use vpp_api_test with socket address,so I use commond like  this: ./vpp_api_test socket-name 192.168.1.16:5002 and I modify startup.conf like this: unix { cli-listen 192.168.1.16:5002 } socksvr{ socket-name 192.168.1.16:5002 } but it can't connect,why? Thank

[vpp-dev] I want to construct some packets to be sent by a specified thread,what can I do?

2019-09-09 Thread wei_sky2008
our process mode need to construct some packets  which is to be sent by a specified thread in A thread ,a node receive some packets ,when these packet deal finish,they need to  be sent to another node which is belong to B thread, What can be done to meet this requirement? Thanks

Re: [vpp-dev] I want to construct some packets to be sent by a specified thread,what can I do?

2019-09-11 Thread wei_sky2008
On Tue, Sep 10, 2019 at 12:44 AM, Christian Hopps wrote: > > UTSL Thank you for reply。 In our  scenario,we use the Intel ‘s DDP feature to hash different GTP packets into different threads。And We want the GTP packets from the same UE to be hashed on the same thread,DDP can‘t implement this

Re: [vpp-dev] I want to construct some packets to be sent by a specified thread,what can I do?

2019-09-10 Thread wei_sky2008
Thank you for your response。 I still have another question,does this mechanism involve copying?We need to ensure packet forwarding efficiency -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13933): https://lists.fd.io/g/vpp-dev/message/13933 Mute

[vpp-dev] VAT can support define a macro? #vapi

2019-09-24 Thread wei_sky2008
in api file I want to define a macro such as define MAX_NUM   (12) define my_structure { u32 a; u8[MAX_NUM]; } "#define MAX_NUM   (12)" is can't be recognized,how can i do to define this? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online

[vpp-dev] VAT can support define a macro? #vapi

2019-09-24 Thread wei_sky2008
[Edited Message Follows] in api file I want to define a macro such as define MAX_NUM   (12) define my_structure { u32 a; u8[MAX_NUM]; } "define MAX_NUM   (12)" is can't be recognized,how can i do to define this? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group.

[vpp-dev] About VPP trace,why I trace add ip4_lookup, but when i show ,it does't have any record?

2019-09-20 Thread wei_sky2008
I use commond "trace add ip4_lookup 10" in vppctl. when I show trace,no packets is recorded, why? And I use trace add dpdk_input 10 , some packets can be recorded. Thanks! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14028):

[vpp-dev] In main thread,how to send messages to worker threads

2019-11-17 Thread wei_sky2008
[Edited Message Follows] I know,we can use rpc interface send message to main thread。 But our project has a need,we need to send message to worker threads in main thread,what can I do? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14613):

[vpp-dev] In main thread,how to send messages to worker threads

2019-11-17 Thread wei_sky2008
In main thread,how to send messages to worker threads -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14613): https://lists.fd.io/g/vpp-dev/message/14613 Mute This Topic: https://lists.fd.io/mt/60049319/21656 Group Owner: vpp-dev+ow...@lists.fd.io

[vpp-dev] #vpp How does VPP link DPDK lib?

2019-11-28 Thread wei_sky2008
We think VPP uses DPDK for data receive from nic, but it seems no dpdk lib exist in vpp project. we also try to use readelf to check the libs used by vpp, or use strings check the functions in each lib. We did not find how dpdk is used. So can you please give some guide, how does vpp link dpdk

Re: [vpp-dev] About VPP trace,why I trace add ip4_lookup, but when i show ,it does't have any record?

2019-09-22 Thread wei_sky2008
Thanks for reply Is trace function useless in internal nodes? I often see the following code if(node->flags & VLIB_NODE_FLAG_TRACE) { ... } -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14038): https://lists.fd.io/g/vpp-dev/message/14038 Mute

Re: [vpp-dev] About VPP trace,why I trace add ip4_lookup, but when i show ,it does't have any record?

2019-09-22 Thread wei_sky2008
[Edited Message Follows] Thanks for reply Is trace function useless in internal nodes? I often see the following code in  internal nodes: if(node->flags & VLIB_NODE_FLAG_TRACE) { ... } -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14038):

[vpp-dev] #vpp #bond How to config bond mode in vpp?

2020-01-02 Thread wei_sky2008
we use vpp version 19.08 when I config Bond in VPP startup.conf dpdk{ ... vdev eth_bond0,mode=1,slave=:01:00.0,slave=:01:00.1,xmit_policy=l34 .. } But when vpp start,I show int DBGvpp# show int Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     Counter          Count

[vpp-dev] #vpp #bond How to config bond mode in vpp?

2020-01-02 Thread wei_sky2008
[Edited Message Follows] we use vpp version 19.08 I config bond in VPP startup.conf dpdk{ ... vdev eth_bond0,mode=1,slave=:01:00.0,slave=:01:00.1,xmit_policy=l34 .. } But when vpp start,I show int DBGvpp# show int Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     

[vpp-dev] #vpp #bond How to config bond mode in vpp?

2020-01-02 Thread wei_sky2008
[Edited Message Follows] we use vpp version 19.08 I config bond in VPP startup.conf dpdk{ ... vdev eth_bond0,mode=1,slave=:01:00.0,slave=:01:00.1,xmit_policy=l34 .. } But when vpp start,I show int DBGvpp# show int Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     

[vpp-dev] How does VPP access QAT in container?

2020-03-09 Thread wei_sky2008
Dear vpp experts, We are tesing vpp in container recently, we runs an ligato vpp-base docker image in an VM (guest os). For the NICs,  we have 2 methods to access. 1. we enable SR-IOV and make the VF accessible in VM. 2. we can run VPP on host to manage the physical device and create

[vpp-dev] #vat How can I use vpp_api_test via socket file

2020-04-14 Thread wei_sky2008
Hello, I am trying to connect VPP by vpp_vat_socket via socket file. However I am not able to connect to VPP via vpp_api_test over the socket file. Is this expected behavior? How to connect to vpp via vpp_api_test over custom socket file? Thank you. My startup.conf unix { cli-listen

[vpp-dev] #vat how to use VPP and vpp_api_test in K8s 's POD

2020-04-14 Thread wei_sky2008
In our project, we want to use VPP for external communication in pod In this pod, I want to use two containers to allow VPP and vpp_api_test respectively , VPP is used to process messages received by pod from dpdk bound network card,and vpp_api_test is used to configure VPP when messages are

[vpp-dev] #vat A question about VAT user Socket-name

2020-05-29 Thread wei_sky2008
[Edited Message Follows] When I use vat connect vpp by shm, if vpp process is killed,  vat can’t detect disconnection, vat  will not automatically quit meanwhile I use some command in vat,I can get result  “exec error: Misc",then I restart vpp process, vat is still can't  work,when I quit

[vpp-dev] #vat A question about VAT user Socket-name

2020-05-29 Thread wei_sky2008
[Edited Message Follows] when I use vat connect vpp by shm, if vpp process is killed,  vat can’t detect disconnection, vat  will not automatically quit, meanwhile I use some command in vat,I can get result  “exec error: Misc” But When I use Vat connect vpp by Socket-name, if vpp process is

[vpp-dev] #vat A question about VAT user Socket-name

2020-05-29 Thread wei_sky2008
when I use vat connect vpp by shm, if vpp process is killed,  vat can’t detect disconnection, vat  will not automatically quit, meanwhile I use some commnand in vat,I can get result  “exec error: Misc” But When I use Vat connect vpp by Socket-name, if vpp process is killed, I use some commnand