[vpp-dev] #vat A question about VAT user Socket-name
[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 vat,it hint “main:461: BUG: message reply spin-wait timeout”. And when I use Vat connect vpp by Socket-name, if vpp process is killed, I use some commnand in vat,The command has been waiting for a response and cannot be returned. why? Or is there any method for VAT to automatically reconnect after VPP restarts? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16568): https://lists.fd.io/g/vpp-dev/message/16568 Mute This Topic: https://lists.fd.io/mt/74540011/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vat A question about VAT user Socket-name
[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 killed, I use some commnand in vat,The command has been waiting for a response and cannot be returned. why? Or is there any method for VAT to automatically reconnect after VPP restarts? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16568): https://lists.fd.io/g/vpp-dev/message/16568 Mute This Topic: https://lists.fd.io/mt/74540011/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vat A question about VAT user Socket-name
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 in vat,The command has been waiting for a response and cannot be returned. why? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16568): https://lists.fd.io/g/vpp-dev/message/16568 Mute This Topic: https://lists.fd.io/mt/74540011/21656 Mute #vat: https://lists.fd.io/mk?hashtag=vat&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vat how to use VPP and vpp_api_test in K8s 's POD
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 received by other services of the same k8s cluster but vpp_api_test only can use shm or sock file to cfg vpp, I try modify vpp container startup.conf statseg { socket-name /volumeshare/api_1.sock } in vpp container ./vpp_api_test socket-name /volumeshare/api_1.sock it can work but vpp_ai_test container , it can not work: clib_socket_init: connect (fd 3, '/volumeshare/api_1.sock'): Protocol wrong type for socket WARNING: socket connection failed These two containers belong to the same pod. And in the pod yaml , I mount /volumeshare/ directory for these two containers. how can I do? Thanks -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16067): https://lists.fd.io/g/vpp-dev/message/16067 Mute This Topic: https://lists.fd.io/mt/73009185/21656 Mute #vat: https://lists.fd.io/mk?hashtag=vat&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vat How can I use vpp_api_test via socket file
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 /run/vpp/cli-vpp1.sock log /tmp/vpe.log nodaemon } api-segment { prefix vpp1 } cpu { corelist-workers 2 main-core 1 } dpdk { dev :03:00.0 } socksvr { socket-name /run/vpp/api_1.sock } I use cmd connect vppvpp_api_test socket-name /run/vpp/api_1.sock chroot prefix vpp1 But it can't work,why? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16064): https://lists.fd.io/g/vpp-dev/message/16064 Mute This Topic: https://lists.fd.io/mt/73008683/21656 Mute #vat: https://lists.fd.io/mk?hashtag=vat&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] How does VPP access QAT in container?
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 virthost-user, then can use virtio in guest os. But for QAT device, I think SR-IOV can also be used, but beside SR-IOV, is there any way similar like virthost-user&vitio? Thanks Wei -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15705): https://lists.fd.io/g/vpp-dev/message/15705 Mute This Topic: https://lists.fd.io/mt/71832473/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vpp #bond How to config bond mode in vpp?
[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) Counter Count GigabitEthernet1/0/0 1 down 9000/0/0/0 GigabitEthernet1/0/1 2 down 9000/0/0/0 UnknownEthernet2 3 down 9000/0/0/0 local0 0 down 0/0/0/0 when I Set state UnknownEthernet2 up, vpp crash down. Another question, when I compile VPP, Is need cfg RTE_LIBRTE_PMD_BOND (build/external/packages/dpdk.mk) option on? Thanks! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15026): https://lists.fd.io/g/vpp-dev/message/15026 Mute This Topic: https://lists.fd.io/mt/69394532/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vpp #bond How to config bond mode in vpp?
[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) Counter Count GigabitEthernet1/0/0 1 down 9000/0/0/0 GigabitEthernet1/0/1 2 down 9000/0/0/0 UnknownEthernet2 3 down 9000/0/0/0 local0 0 down 0/0/0/0 when I Set status UnknownEthernet2 up, vpp crash down. Another question, when I compile VPP, Is need cfg RTE_LIBRTE_PMD_BOND (build/external/packages/dpdk.mk) option on? Thanks! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15026): https://lists.fd.io/g/vpp-dev/message/15026 Mute This Topic: https://lists.fd.io/mt/69394532/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vpp #bond How to config bond mode in vpp?
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 GigabitEthernet1/0/0 1 down 9000/0/0/0 GigabitEthernet1/0/1 2 down 9000/0/0/0 UnknownEthernet2 3 down 9000/0/0/0 local0 0 down 0/0/0/0 when I Set status UnknownEthernet2 up, vpp crash down. Another question, when I compile VPP, Is need cfg RTE_LIBRTE_PMD_BOND (build/external/packages/dpdk.mk) option on? Thanks! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15026): https://lists.fd.io/g/vpp-dev/message/15026 Mute This Topic: https://lists.fd.io/mt/69394532/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452 Mute #bond: https://lists.fd.io/mk?hashtag=bond&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vpp How does VPP link DPDK lib?
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 lib? [root@PC-20180207IVMZ bin]# readelf -d ./vpp Dynamic section at offset 0xfcbc0 contains 38 entries: 0x0001 (NEEDED) [libvlibmemory.so.19.08] 0x0001 (NEEDED) [libvnet.so.19.08] 0x0001 (NEEDED) [libdl.so.2] 0x0001 (NEEDED) [libvlib.so.19.08] 0x0001 (NEEDED) [libsvm.so.19.08] 0x0001 (NEEDED) [librt.so.1] 0x0001 (NEEDED) [libpthread.so.0] 0x0001 (NEEDED) [libuuid.so.1] 0x0001 (NEEDED) [libvppinfra.so.19.08] 0x0001 (NEEDED) [libm.so.6] 0x0001 (NEEDED) [libssl.so.10] 0x0001 (NEEDED) [libcrypto.so.10] 0x0001 (NEEDED) [libc.so.6] 0x0001 (NEEDED) [ld-linux-x86-64.so.2] 0x000f (RPATH) Library rpath: [/home/lijinlei/LJL_VPP/vpp/build-root/build-vpp_debug-native/vpp/lib::] 0x000c (INIT) 0x405050 0x000d (FINI) 0x4cdb20 0x0019 (INIT_ARRAY) 0x6fca88 0x001b (INIT_ARRAYSZ) 160 (bytes) 0x001a (FINI_ARRAY) 0x6fcb28 0x001c (FINI_ARRAYSZ) 152 (bytes) 0x6ef5 (GNU_HASH) 0x400298 0x0005 (STRTAB) 0x402420 0x0006 (SYMTAB) 0x400698 0x000a (STRSZ) 5918 (bytes) 0x000b (SYMENT) 24 (bytes) 0x0015 (DEBUG) 0x0 0x0003 (PLTGOT) 0x6fd000 0x0002 (PLTRELSZ) 3384 (bytes) 0x0014 (PLTREL) RELA 0x0017 (JMPREL) 0x404318 0x0007 (RELA) 0x403e68 0x0008 (RELASZ) 1200 (bytes) 0x0009 (RELAENT) 24 (bytes) 0x6ffe (VERNEED) 0x403db8 0x6fff (VERNEEDNUM) 4 0x6ff0 (VERSYM) 0x403b3e 0x (NULL) 0x0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14731): https://lists.fd.io/g/vpp-dev/message/14731 Mute This Topic: https://lists.fd.io/mt/64317715/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] In main thread,how to send messages to worker threads
[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): 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 Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] In main thread,how to send messages to worker threads
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 Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] VAT can support define a macro? #vapi
[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. View/Reply Online (#14046): https://lists.fd.io/g/vpp-dev/message/14046 Mute This Topic: https://lists.fd.io/mt/34274817/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] VAT can support define a macro? #vapi
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 (#14046): https://lists.fd.io/g/vpp-dev/message/14046 Mute This Topic: https://lists.fd.io/mt/34274817/21656 Mute #vapi: https://lists.fd.io/mk?hashtag=vapi&subid=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] About VPP trace,why I trace add ip4_lookup, but when i show ,it does't have any record?
[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): https://lists.fd.io/g/vpp-dev/message/14038 Mute This Topic: https://lists.fd.io/mt/34228502/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] About VPP trace,why I trace add ip4_lookup, but when i show ,it does't have any record?
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 This Topic: https://lists.fd.io/mt/34228502/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] About VPP trace,why I trace add ip4_lookup, but when i show ,it does't have any record?
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): https://lists.fd.io/g/vpp-dev/message/14028 Mute This Topic: https://lists.fd.io/mt/34228502/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] I want to construct some packets to be sent by a specified thread,what can I do?
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 function。 So we consider using the Handoff mechanism 。But We still have some doubts. (1) We know VPP ensure efficiency by deal one group packets by the same thread's nodes,if we use handoff ,how much does this mechanism affect efficiency?Or is there any other mechanism to meet our requirements? (2)If we use Handoff,Which method is better: a) Dealing GTP packet RSS without using devices, use software RSS,use one Thread receive All packets,then handoff to other threads b) Dealing GTP packet RSS with using devices, when the thread receive packet, determine if the current thread need to deal this packet,if not,handoff to other thread。 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13949): https://lists.fd.io/g/vpp-dev/message/13949 Mute This Topic: https://lists.fd.io/mt/34077019/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] I want to construct some packets to be sent by a specified thread,what can I do?
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 This Topic: https://lists.fd.io/mt/34077019/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] I want to construct some packets to be sent by a specified thread,what can I do?
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 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13922): https://lists.fd.io/g/vpp-dev/message/13922 Mute This Topic: https://lists.fd.io/mt/34077019/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] how VAT work with Socket IP Address
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 Mute This Topic: https://lists.fd.io/mt/33064939/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] how VAT work with Socket IP Address
[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 192.168.1.16,and run vpp_api_test on another PC which IP is 192.168.1.18 but it can't connect,why? Thank you ! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13870): https://lists.fd.io/g/vpp-dev/message/13870 Mute This Topic: https://lists.fd.io/mt/33064939/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] how VAT work with Socket IP Address
[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 you ! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13870): https://lists.fd.io/g/vpp-dev/message/13870 Mute This Topic: https://lists.fd.io/mt/33064939/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] how VAT work with Socket IP Address
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 ! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13870): https://lists.fd.io/g/vpp-dev/message/13870 Mute This Topic: https://lists.fd.io/mt/33064939/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-