[vpp-dev] feature arc node is NOT hitting

2021-12-13 Thread Satya Murthy
Hi VPP experts, We are facing some strange issue in the feature arc framwork. We have two nodes inserted in "device-input" feature arc, for example, "feature1" and "feature2". We have enabled these features on two interfaces available. "show interface ifc-1 features" and "show interface ifc-2

Re: [vpp-dev] VPP crashing on Cetnos8 server

2021-11-16 Thread Satya Murthy
Hi Ashish / VPP-experts, We are also seeing the same crash with fdio 21.06 version. vec_resize_allocate_memory + 0x285 vlib_put_next_frame + 0xbd Our main-heap size is set to 2G. Is this a known issue (or) any fix that is available for this. Any inputs will be helpful. -- Thanks & Regards, Mu

Re: [vpp-dev] VPP 20.05 problems related to memory allocations -- possible memory leak?

2021-11-16 Thread Satya Murthy
Hi Klemant/Elias/Vpp-Experts, We are also seeing the same crash with fdio 21.06 version. vec_resize_allocate_memory + 0x285 vlib_put_next_frame + 0xbd Our main-heap size is set to 2G. Is this a known issue (or) any fix that is available for this. Any inputs will be helpful. -- Thanks & Regard

Re: [vpp-dev] Does memif zero-copy work ?

2021-10-22 Thread Satya Murthy
Thanks MJ for the quick reply. Will try this and check. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20360): https://lists.fd.io/g/vpp-dev/message/20360 Mute This Topic: https://lists.fd.io/mt/86509719/21656 Group Owne

[vpp-dev] Does memif zero-copy work ?

2021-10-22 Thread Satya Murthy
Hi VPP experts, We are using memif for communication between an APP and VPP. We recently tried moving to zero-copy memif based on the example  icmp_responder-zero-copy-slave. This example shows the code for the APP being in SLAVE mode. So, to go along with this, we made VPP as memif-MASTER and AP

[vpp-dev] Are INPUT and PROCESS nodes considered for CPU util calculations?

2021-10-18 Thread Satya Murthy
Hi VPP Experts, We have an issue at hand, where we are seeing non-uniform CPU utilizations showing up for workers from "show threads". We are doing lot of work as part of some timer node, which periodically does maintenance of flows. However, this maintenance activity, which is run as part of th

Re: [vpp-dev] vlib_get_plugin_symbol returning null after upgrading to 21.06 version

2021-09-29 Thread Satya Murthy
This works fine for me where the code is fully written by us. But, I have few functions which are kind of generated routines from a third party library, where we do not have control to add this __clib_export. Is there any way to work around this case? -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=

Re: [vpp-dev] vlib_get_plugin_symbol returning null after upgrading to 21.06 version

2021-09-29 Thread Satya Murthy
Thanks Mohammed and Dave for the quick inputs. Adding __clib_export  solved my issue. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20226): https://lists.fd.io/g/vpp-dev/message/20226 Mute This Topic: https://lists.fd.

[vpp-dev] vlib_get_plugin_symbol returning null after upgrading to 21.06 version

2021-09-29 Thread Satya Murthy
Hi, We are trying to upgrade to fdio.2106 version from a previous version. After upgrading to 21.06 version with our custom plugins, we are seeing that  vlib_get_plugin_symbol()  to resolve a symbol from another plugin is always returning null. This was working fine in the earlier version. I cr

[vpp-dev] Making ACL plugin thread safe

2021-09-28 Thread Satya Murthy
Hi VPP-experts, We are exploring ways to make the ACL plugin thread safe and need your inputs on the same. As of today, most of the ACL apis (acl-add/del and acl-lookup-context-add/del) take thread barrier lock, due to which synchronization is automatically achieved for the workers, who are tr

[vpp-dev] memif_tx_burst() is failing with INVALID_ARG after migrating to fdio-21.06 version

2021-09-22 Thread Satya Murthy
Hi, We had our software based on 20.05 vpp version. Recently, we moved to fdio-2106 version and could compile it successfully. However, memif_tx_burst() function is failing to send message to VPP with error code "INVALID_ARGUMENT". This was working in 20.05 version without any issues. I see tha

[vpp-dev] VPP plugins in C++

2021-08-31 Thread Satya Murthy
Hi , Is it possible to develop a vpp plugin in C++ (or) does VPP framework pose any restrictions ? Appreciate your inputs on this. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20051): https://lists.fd.io/g/vpp-dev/m

[vpp-dev] ARP learning via workers and thread barrier locking

2021-08-25 Thread Satya Murthy
Hi All, As per my current understanding of the code for ARP learning: 1. ARP is learned on a VPP worker 2. Send to main thread via rpc, by adding to the rcp queue 3. main thread picks up this from rpc queue 4. main thread takes thread barrier lock and updates the ARP table In the step4, we are t

Re: [vpp-dev] Issues adding ACL with binary_api

2021-08-25 Thread Satya Murthy
vl_api_acl_add_replace_reply_t_handler: *73* : ACL index: 0 *73* pointing to the error code VNET_API_ERROR_INVALID_ARGUMENT.  It gives some clue. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20016): https://lists.fd.

Re: [vpp-dev] vpp main thread crashed at mspace_put

2021-07-19 Thread Satya Murthy
Thanks Sudhir for the quick inputs. Will check if we have any leaks. Also, as a side question, How are you finding leaks in VPP ? Are you using address sanitizer (or) something else? -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Repl

Re: [vpp-dev] VPP getting hanged after consecutive VAPI requests

2021-07-19 Thread Satya Murthy
Hi Chinmaya, We are also facing similar issue and want to check with you if you are able to find a fix for this. Appreciate any inputs regarding the same. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19831): https://

Re: [vpp-dev] vpp main thread crashed at mspace_put

2021-07-19 Thread Satya Murthy
Hi Sudhir, Were you able to find a solution to this problem. We are also facing similar issue. Any inputs would be helpful. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19830): https://lists.fd.io/g/vpp-dev/message/1

Re: [vpp-dev] : Worker Thread Deadlock Detected from vl_api_clnt_node

2021-07-09 Thread Satya Murthy
Thanks Rajith for quick reply. At this point of time, we do not have a luxury of upgrading to 20.09 in a quick time. Hi Dave, Do you have any specific commit in mind that can help us to eliminate this crash. Really appreciate your inputs on this. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-

Re: [vpp-dev] : Worker Thread Deadlock Detected from vl_api_clnt_node

2021-07-08 Thread Satya Murthy
Hi Rajith / Dave, We are on fdio.2005 version and see this same crash when we are doing packet tracing. Is there any specific patch/commit that improves the situation of this locking. If so, Can you please let us know the commit info. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links:

[vpp-dev] side effects of not using vlib_get_next_frame and put_frame in packet processing

2021-03-25 Thread Satya Murthy
Hi , A basic doubt on the VPP packet processing loop. Typically, we see the packet processing loop as: while(n_left_from > 0) { get_next_frame quad-loop single-loop put_next_frame } >From the code, I could not fully understand if it is mandatory to have the >outerloop or not. Even when I do di

[vpp-dev] Bug in vl_socket_read_ready() function

2021-02-10 Thread Satya Murthy
Hi , While using AddressSanitizer with VPP, it detected use-after-poison in  vl_socket_read_ready() function. Closely looking at the code, it seems that this is happening due to the following code. if (vec_len (msg_buffer) > msgbuf_len) /* There are some fragments left. Shrink the msg_buffer to

Re: [vpp-dev] Has anyone able to run AddressSanitizer with VPP, successfully ?

2021-02-02 Thread Satya Murthy
Thanks Ben for the info. My code is based on fdio.2005 The commit you mentioned to exclude is not present in this repo. Do you see any issues with fdio.2005 version for ASAN to run clean ? -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. Vi

[vpp-dev] Has anyone able to run AddressSanitizer with VPP, successfully ?

2021-01-31 Thread Satya Murthy
Hi All, Has anyone able to run the AddressSanitizer with basic VPP-APIs being run on VPP. As soon a VPP-API message lands onto the VPP, it is crashing with ASAN detecting an error. Due to this, we are not able to use ASAN for any other functional testing. The ASAN error is happening inside VPP

Re: [vpp-dev] VPP crash after enabling address sanitizer

2021-01-27 Thread Satya Murthy
Hi Ben, Thanks for the quick response. I don't see a possibility of this getting called from any other thread. As seen in the ASAN error o/p , its happening in the main_thread only always. WRITE of size 61 at 0x7fffc519aa5f thread T0 ( *vpp_main* ) Any idea what could be happening here. This is

[vpp-dev] VPP crash after enabling address sanitizer

2021-01-25 Thread Satya Murthy
Hi, Tried enabling Google address sanitizer in VPP by looking at the following Wiki. https://fd.io/docs/vpp/master/troubleshooting/sanitizer.html After this, we are seeing that ASAN is detecting errors in VPP-API infra code and crashing. One of the crash is as below. ==17226==ERROR: AddressSani

[vpp-dev] Packet corruption over memif ( with libmemif )

2020-12-04 Thread Satya Murthy
Hi, We are facing a strange issue in  packet transfer over memif channel. We have a memif connection setup with VPP as master and App as Client. When the App sends a 64 messages continuously to VPP, the response from VPP is getting corrupted. We are doing coloring of the message bytes on both s

Re: [vpp-dev] ip full reassembly - is_custom_app field broken ?

2020-11-09 Thread Satya Murthy
Hi Klement, Do you have the similar changes for ip6_full_reassembly.c as well. If so, Can you pls pass on the diffs. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17967): https://lists.fd.io/g/vpp-dev/message/17967 Mut

Re: [vpp-dev] 2 MB of message over memif channel

2020-11-09 Thread Satya Murthy
Thanks Damjan / MJ for the quick inputs. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17966): https://lists.fd.io/g/vpp-dev/message/17966 Mute This Topic: https://lists.fd.io/mt/78074016/21656 Group Owner: vpp-dev+ow..

Re: [vpp-dev] VPP committers: VPP PTL vote

2020-09-29 Thread Satya Murthy
+1 -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17573): https://lists.fd.io/g/vpp-dev/message/17573 Mute This Topic: https://lists.fd.io/mt/77123394/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lis

Re: [vpp-dev] ip full reassembly - is_custom_app field broken ?

2020-09-10 Thread Satya Murthy
Thanks a lot Klement. Will give it a try with this patch and get back to you. (Hopefully , by early next week ). -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17365): https://lists.fd.io/g/vpp-dev/message/17365 Mute Th

Re: [vpp-dev] ip full reassembly - is_custom_app field broken ?

2020-09-08 Thread Satya Murthy
Ok. I think, required changes would be more complex / involved than I initially imagined. Can you please make these changes. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17346): https://lists.fd.io/g/vpp-dev/message/1

Re: [vpp-dev] ip full reassembly - is_custom_app field broken ?

2020-09-08 Thread Satya Murthy
Thanks Klement for the quick response. I can make the changes you suggested. But, one major doubt I have is on the HANDOFF scenario. Let's say, as part of custom-reasm-node, if the packet is decided to be handed off to another thread, then the next_node is ALWAYS getting set as "ip4-full-reass

[vpp-dev] ip full reassembly - is_custom_app field broken ?

2020-09-08 Thread Satya Murthy
[Edited Message Follows] Hi, Looking at the ip4 full reassembly graph nodes for the purpose of punting the fragments and getting the reassembled packets from our custom graph node. However, from the code it seems that,  is_custom_app flag is effectively disabled. I see that the node function i

[vpp-dev] ip full reassembly - is_custom_app field broken ?

2020-09-08 Thread Satya Murthy
Hi, Looking at the ip4 full reassembly graph nodes for the purpose of punting the fragments and getting the reassembled packets from our custom graph node. However, from the code it seems that,  is_custom_app flag is effectively disabled. I see that the node function is always getting called wi

[vpp-dev] Query on ip4-local / ip4-unicast Feature Arc sequence

2020-09-04 Thread Satya Murthy
Hi , We wanted to have our custom graph node to receive all the IP packets that are destined to our local interfaces. However, we want the packets after reassmbly is done by the vnet reassembly code, if needed. Hence, we added a custom_feature on the ip4-unicast feature-arc as below. VNET_FEAT

[vpp-dev] Fib entry add programatically

2020-08-24 Thread Satya Murthy
Hi, Is there an easier way to add a static route programatically from a VPP plugin. I know that this can be done easily via vppctl CLI or via vppapi infrastructure. However, if we want to achieve the same from a VPP plugin, is there a way we can use CLI/vppapi infra directly  rather than calling

Re: [vpp-dev] ARP resolution from non-connected IP

2020-08-20 Thread Satya Murthy
Neale /Ben, We already have a static route to reach the peer. Even after that, we are getting this error. And this error is as per the VPP's ARP code. It's not allowing the ARP-REQUEST from a non-connected source IP. If we dont know allow this, I am not 100% sure how multihop-BGP peering kind o

Re: [vpp-dev] ARP resolution from non-connected IP

2020-08-19 Thread Satya Murthy
Hi Dave, Thanks for the quick inputs. I tried enabling the proxy-arp in both the following ways. But, still I am seeing the drop as below. CLIs tried: = set ip arp proxy  203.0.113.2 - 203.0.113.4 set interface proxy-arp intfc1 enable trace command o/p indicating the ARP drop: =

[vpp-dev] ARP resolution from non-connected IP

2020-08-19 Thread Satya Murthy
Hi, Have a query on the ARP resolution. We have a Router and VPP-box connected. We are trying to do some peering from router’s loopback IP. This loopback IP is not in the connected subnet-range. Due to this, router is initiating an ARP request with src as non-connected-IP in the payload. VPP

Re: [vpp-dev] Query on Feature arc for tapping all IP packets after reassembly

2020-08-12 Thread Satya Murthy
Thanks a lot Matt for the quick inputs. We are interested in packets destined for our interfaces only. Hence, I will try with ip4-local. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#17215): https://lists.fd.io/g/vpp-

[vpp-dev] Query on Feature arc for tapping all IP packets after reassembly

2020-08-12 Thread Satya Murthy
Hi, We have a query on one of the requirements we have. 1. We would like to tap all the ip4 packets into our custom graph node. 2. But, we want to tap the ip packets only after reassembly is completed, if fragments are received. I was looking at ip-local feature arc, if this works for our requi

Re: [vpp-dev] Crash in ACL code while applying rulematch

2020-07-17 Thread Satya Murthy
Hi Andrew, We could not try the same test with the change you suggested. We will try it for sure in this week. Regarding our scenario for example: we have 4 workers. All the 4 workers can create ACLs and also can process data. During high load of data and create ACLs, we are seeing this crash. Th

Re: [vpp-dev] Crash in ACL code while applying rulematch

2020-07-16 Thread Satya Murthy
Hi Andrew, Thanks for your suggestions on this. We did few more tests today, and here are some observations. Please let us know your thoughts on this. 1) We added a lock on the datapath also while doing rulematch using acl apis. The same lock is getting acquired while doing acl adds from other t

Re: [vpp-dev] Crash in ACL code while applying rulematch

2020-07-15 Thread Satya Murthy
Hi Andrew, Thanks for the quick response. All the activity that we are performing with ACLs, like , add and delete of ACLs from multiple workers, we are doing by taking a lock. This will ensure that no two workers will be able to operate on ACLs at the same time. Is there any specific restrict

[vpp-dev] Crash in ACL code while applying rulematch

2020-07-15 Thread Satya Murthy
Hi , We are seeing a crash when we are trying to do ACL rulematch within a lookup context. #0  0x7f7786498ca0 in multi_acl_match_get_applied_ace_index (am=0x7f77866caa00 , is_ip6=0, match=0x7f7791fff610) at src/plugins/acl/public_inlines.h:625 #1  0x7f7786498f27 in hash_multi_acl_match_

[vpp-dev] Query on Performance with pools

2020-07-07 Thread Satya Murthy
Hi , We are seeing following observations when we do performance tests with our plugin/graphnodes. 1. When we have 1 subscriber session, our custom-graph-node takes 1.35e1 cycles  ( 60 vec/call ) 2. When we have 200 subscriber sessions, the same custom-graph-node takes 1.2e2 cycles ( same 60 v

Re: [vpp-dev] Query on Inner packet Fragmentation and Reassembly

2020-07-01 Thread Satya Murthy
Thanks a lot Klement for this quick info. This will serve our purpose. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16853): https://lists.fd.io/g/vpp-dev/message/16853 Mute This Topic: https://lists.fd.io/mt/75234196/2

[vpp-dev] Query on Inner packet Fragmentation and Reassembly

2020-07-01 Thread Satya Murthy
Hi , We have a use case, where we receive packets in a tunnel, and the inner packet may be fragments. If we want to reassemble the inner fragments and get one single packet, does VPP already have a framework that has this functionality. If it's already there, we can make use of it. I saw MAP pl

[vpp-dev] Crash in vlib_add_trace with multi worker mode

2020-06-02 Thread Satya Murthy
Hi , We are seeing a crash while doing add_trace for a vlib_buffer in our graph node. #0 0x74ee0feb in raise () from /lib64/libc.so.6 #1 0x74ecb5c1 in abort () from /lib64/libc.so.6 #2 0x0040831c in os_panic () at /fdio/src/fdio.1810/src/vpp/vnet/main.c:368 #3 0x7

[vpp-dev] vlib buffer getting overwritten over memif

2020-05-22 Thread Satya Murthy
[Edited Message Follows] Hi , Seeing some strange issue when using memif to transfer some messages from client to VPP. Each of the message that we want to transfer from client to VPP is around 64 KB. When the client sends messages ( each of size 64 KB) to VPP in quick succession, we are seeing

[vpp-dev] vlib buffer getting overwritten over memif

2020-05-22 Thread Satya Murthy
Hi , Seeing some strange issue when using memif to transfer some messages from client to VPP. Each of the message that we want to transfer from client to VPP is around 64 KB. When the client sends messages ( each of size 64 KB) to VPP in quick succession, we are seeing that the buffer is gettin

[vpp-dev] can the pointer of a used-pool-element change before it's put back ?

2020-05-06 Thread Satya Murthy
Hi, We are seeing some issue in our plugin that seems to caused by the change of pointer for a pool element. The scenario is as below. Can you please let us know , if this can really occur. 1. We have multiple workers 2. We have one global pool of  custom-structures ( this is a non-fixed pool)

[vpp-dev] accessing pool entries in gdb

2020-05-04 Thread Satya Murthy
Having some issue while accessing entries of a pool in GDB. I have a pool of some structures. custom_struct *pool; This custom_struct has alignment with 64 byte cache_line. now, I have added 3 entries in this pool. The code seems to be working fine in adding/deleting/traversing this pool using

[vpp-dev] Storing vlib buffer index for later processing

2020-04-17 Thread Satya Murthy
Hi , We are having a scenario to support as below and we would like to know what we are doing here is correct or not. 1. Our graph node receives a frame with TWO buffers 2. Graph node decides to process FIRST buffer and enqueues the packet to a next-node. 3. Graph node decides to store the SECO

[vpp-dev] exporting plugin functions/symbols to global space

2020-04-14 Thread Satya Murthy
Hi, I remember seeing some questions regarding this in fdio mailing list, but not able to find it now. We have a plugin which has 10 functions that are needed by 3 other plugins ( which are owned by us ). As of now, we are doing vlib_get_plugin_symbol() and getting the symbols. But , I remembe

[vpp-dev] query on pool memory usage

2020-04-08 Thread Satya Murthy
Hi, Is there anyway we can get info what are all vectors and pools each plugin is using and their corresponding memory usage. We are chasing some memory leak issue and if VPP has a builtin way of getting this info, we want to take leverage of it. If VPP does not have any built-in way, do you gu

Re: [vpp-dev] naive questions on VPP memory usage ( does it ever come down )

2020-04-01 Thread Satya Murthy
Thanks Dave and Damjan for quick inputs. This helps in understanding the memory mgmt in vpp. Inline to your questions. 1. Can you capture "show memory main-heapsh” before and after? We are currently in fdio.1810 and i am not seeing this option. 2. One more quick question. With this model of memor

[vpp-dev] naive questions on VPP memory usage ( does it ever come down )

2020-04-01 Thread Satya Murthy
Few questions on VPP memory usage. 1. Using pmap -p i am collecting the total memory usage of vpp process at the beginning of my test. ( it is X KB ) 2. I ran test for few hours which will obviously have lot of pool_get/pool_put 3. Collected the same same pmap output and the memory usage grown t

[vpp-dev] Creating a new frame using set of buffers

2020-03-29 Thread Satya Murthy
Hi, We have a module that need to receive the packets and buffer some of the packets until some duration and process them after a specific duration and send them out. To achieve this, we are currently noting down all the buffer indices in a frame that needs to be buffered and storing them in a

Re: [vpp-dev] How to get source node of a buffer

2020-03-24 Thread Satya Murthy
Thanks Neale for the quick inputs. I am planning to add src_node index in the buffer metadata ( opaque2) for this purpose. Hoping that this helps in our debugging. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15850):

[vpp-dev] How to get source node of a buffer

2020-03-23 Thread Satya Murthy
Hi , Is there any way to find the source node of a buffer. Basically, I want to know from which node this buffer came. I understand that each graph node shall have a design which is independant of the source node. However, the source node information may be useful in case of debugging some cras

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-16 Thread Satya Murthy
Hi Florin, Over the weekend, I went through the document that you mentioned and it gave me a good overview. Thanks for pointing to that doc. However, my task of integrating mqs->epfd into our main dispatch loop still seems to be needing more finer details of the code. With this respect, I have

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-13 Thread Satya Murthy
Hi Florin, Thanks a lot for the detailed explanation. This kind of gives an overview of this area, which really helps in our integration. Just one more question: We are planning to remove the concept of vcl worker in our worker, as our app is a single threaded app and will not be multi-threaded

Re: [vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-13 Thread Satya Murthy
Hi Florin, Thank you very much for the inputs. These are very difficult to understand unless we go through the code in detail. Today, Whole day, I was trying to follow your instructions and get this working by looking at the code as well. However, I am not fully successful. Before going further,

[vpp-dev] Is there any Linux FD to poll for VCL message

2020-03-12 Thread Satya Murthy
Hi , We have a TCP application trying integrate with VPP-VCL framework. Our application has its own dispatch loop with epoll and we would like to know if VCL framework has any linux fd ( like an eventfd for the entire svm message queue ) that we can add into our epoll to poll for VCL session me

Re: [vpp-dev] VPP with FRR Bring-up - tap interface enable causing crash

2020-03-09 Thread Satya Murthy
which fdio release version you are using? -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15712): https://lists.fd.io/g/vpp-dev/message/15712 Mute This Topic: https://lists.fd.io/mt/71738703/21656 Group Owner: vpp-dev+ow.

Re: [vpp-dev] Trying my luck with BGP peering

2020-03-09 Thread Satya Murthy
Hi Luca, Thanks a lot for this info. Really appreciate timely inputs on this. We are currently on fdio 1810 version. Will we be able check this plugins to this version?  (or) we have to move to 20.01 ? Please let us know. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive al

[vpp-dev] Trying my luck with BGP peering

2020-03-09 Thread Satya Murthy
Hi , I think, this topic has been discussed in few of the earlier questions, but still I could not find a one that gave a workable solution in totality. We are trying to write a BGP application which hosts BGP peering sessions, using VPP as a dataplane entity. We tried following few options wit

[vpp-dev] how to catch packets on a specific TCP port

2020-03-05 Thread Satya Murthy
Hi, We are looking for a way to get all the packets on a particular TCP port to reach our plugin. For UDP ports, we could see that udp_register_dst_port() can be used to get packets on a specific UDP port. But, for TCP, we could not see any registration function like this. Any pointers on this

[vpp-dev] Can i increase the size of vlib buffer opaque2

2020-03-03 Thread Satya Murthy
We are currently using opaque2 which has 10 uint32. Can i increase this size to 30 uint32s. What kind of impact/restrictions we have for this opaque2 metadata sizes. Please let us know. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/R

[vpp-dev] VCL client connect error

2020-02-17 Thread Satya Murthy
Hi, We are seeing following error when we try to connect to VPP via VCL test client. Is this a known issue? startup file that we are using on VPP: unix { nodaemon log /tmp/vpp.log full-coredump cli-listen /run/vpp/cli.sock #  gid vpp } #api-segment { #  gid v

[vpp-dev] two VPP api clients from same process

2020-02-06 Thread Satya Murthy
Hi, Have a question on number of API clients that we can have a from a client process. Can't we have more than one VPP-API-Clients from a single process ? >From the code, I observed that we have api_main in the client code which is >used for communication towards VPP, which may restrict us to ha

Re: [vpp-dev] Is VppCom suitable for this scenario

2020-01-06 Thread Satya Murthy
Hi Florin, Thank you very much for quick inputs.  I have gone through your youtube video from kubecon and it cleared lot of my doubts. You presented it in a very clear manner. As you rightly pointed out, VppCom will be a overhead for our use case. All we need is just a shared memory communicatio

[vpp-dev] Is VppCom suitable for this scenario

2020-01-06 Thread Satya Murthy
Hi , Have one basic doubt on applicability of VppCom library for a use case that we have as below. Use Case with following requirements: 1. control plane app needs to communicate with different VPP worker threads 2. control plane app may need to send messages to vpp workers with message size th

Re: [vpp-dev] VPP Crash while programming DPO from a VPP Worker

2019-12-31 Thread Satya Murthy
Hi Neale, Thanks a lot for the inputs. It solved our issue. As a side question: Is there any mechanism for the main thread to send the result to the worker thread? -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15003)

[vpp-dev] VPP Crash while programming DPO from a VPP Worker

2019-12-29 Thread Satya Murthy
Hi, We are seeing a VPP crash (ASSERT) with following stack trace, when we try to create a DPO from within a VPP worker. The below crash clear shows that DPO creation is restricted only to the main thread, since the ASSERT is making sure that the thread id is 0. *  Backtrace of "Thread workers

[vpp-dev] vector size issue with Multi threaded VPP

2019-12-05 Thread Satya Murthy
Retrying my luck once again. Hi, We are facing a strange problem when we moved from single worker to multi worker VPP. Our application plugin registers for a specific udp port and gets the packets from udp_local node. In Single Worker VPP: We see that our app-plugin-node

[vpp-dev] Multi-Worker VPP Performance Issue

2019-11-25 Thread Satya Murthy
Hi, We are facing a strange problem when we moved from single worker to multi worker VPP. Our application plugin registers for a specific udp port and gets the packets from udp_local node. In Single Worker VPP: We see that our app-plugin-node is receiving frames of bigger

[vpp-dev] Performance and Vector Size Issue - with multi worker VPP

2019-11-22 Thread Satya Murthy
[Edited Message Follows] Hi, We are facing a strange problem when we moved from single worker to multi worker VPP. Our application plugin registers for a specific udp port and gets the packets from udp_local node. In Single Worker VPP: We see that our app-plugin-node is r

[vpp-dev] Performance and Vector Size Issue - with multi worker VPP

2019-11-22 Thread Satya Murthy
Hi, We are facing a strange problem when we moved from single worker to multi worker VPP. Our application plugin registers for a specific udp port and gets the packets from udp_local node. In Single Worker VPP: We see that our app-plugin-node is receiving frames of bigger

[vpp-dev] Crash in vlib_worker_thread_barrier_sync_int

2019-11-15 Thread Satya Murthy
Hi , We are seeing crash in vlib_worker_thread_barrier_sync_int() function as soon as we send a CLI command to VPP. We are sending CLI command to VPP via a script, which may not be waiting enough for VPP initialization to settle. I see that the crash is happening in the following piece of code.

Re: [vpp-dev] fd to poll in VPP-API-CLIENT with no RX thread

2019-11-14 Thread Satya Murthy
Thank you Dave. Will import this patch and try. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14597): https://lists.fd.io/g/vpp-dev/message/14597 Mute This Topic: https://lists.fd.io/mt/55586364/21656 Group Owner: vpp-

Re: [vpp-dev] fd to poll in VPP-API-CLIENT with no RX thread

2019-11-13 Thread Satya Murthy
Thanks a lot Dave for offering the help. The change would be of great help for us. Please let us know, once you have a patch, so that we can selectively take that patch and import. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply

Re: [vpp-dev] fd to poll in VPP-API-CLIENT with no RX thread

2019-11-13 Thread Satya Murthy
Thanks Ole for the response. We will weigh between performance of "unix domain sockets" vs "lock contention with rx thread" approached and go accordingly. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14585): https://l

Re: [vpp-dev] fd to poll in VPP-API-CLIENT with no RX thread

2019-11-13 Thread Satya Murthy
Thanks Dave for the quick reply. Main problem we are seeing with having RX thread is: 1) Our application sends VPP-API-request in main thread and stores the Request and context information in a list 2) If the response comes in the RX thread, we need to access the context information list in thi

[vpp-dev] fd to poll in VPP-API-CLIENT with no RX thread

2019-11-13 Thread Satya Murthy
Hi, We are trying to come up with VPP-API-CLIENT module that has no special RX thread. As we dont have no RX thread, we are planning to read messages from shared memory from our main dispatcher. To do this, we want to poll on an FD to check if any message arrived in the SHM queue. I was looking

Re: [vpp-dev] Thread handoff node - Is it mandatory to have

2019-10-29 Thread Satya Murthy
Thanks Damjon for the suggestion. As suggested, I have tried processing the buffers and send to another thread and another node-in same thread in the same function using two apis you mentioned. Though it is surely achievable, the code looks lot cluttery and non-uniform now. Hence, I am thinking

Re: [vpp-dev] accessing object pools from multiple threads

2019-09-25 Thread Satya Murthy
Thanks Andrew for the quick reply. Can you please point me to the code where the barrier lock is getting applied for acls. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14051): https://lists.fd.io/g/vpp-dev/message/140

[vpp-dev] accessing object pools from multiple threads

2019-09-24 Thread Satya Murthy
Hi , I have a basic question on how object pools are accessed by multiple threads in VPP. Do we have any locks underlying that safe gaurd the object pools ? For example: In acl_main_t, we have a pool of acl lists as below. *acl_list_t *acls; /* Pool of ACLs */* This list will be populated by vp

[vpp-dev] non-zero counter values in unrelated graph nodes

2019-09-11 Thread Satya Murthy
Hi , We are facing a strange issue, which we are not able to debug even after spending a good amount of time. We are seeing "show node counters" displaying very high number of values all of a sudden for few unrelated nodes like "null-node" and "vmxnet3-input". The values are also keep on changin

Re: [vpp-dev] VPP API client with no rx pthread

2019-09-11 Thread Satya Murthy
Thanks Ole for the quick response. Will got through the doc and give it a try. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13957): https://lists.fd.io/g/vpp-dev/message/13957 Mute This Topic: https://lists.fd.io/mt/34

[vpp-dev] VPP API client with no rx pthread

2019-09-11 Thread Satya Murthy
Hi , We are trying to develop a VPP API client which needs synchronous reply handling. Hence, we were thinking of NOT having a separate pthread for receiving the response from VPP. We are planning to use no_rx_pthread version of connect api. Is there any example code to receive and handle the r

[vpp-dev] memif impacting other workers

2019-08-28 Thread Satya Murthy
Hi, We are seeing one strange issue when we use memif. We have vpp with 2 workers. This VPP is running as memif-server. worker-0  ==> rx-placement with memif worker-1 ==> rx-placement with an IP interface ( dpdk based ) As soon as we have the memif client connected to VPP,  we see degradation in

Re: [vpp-dev] table id for sub interfaces

2019-08-28 Thread Satya Murthy
Thanks john for the quick inputs. That helps. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13857): https://lists.fd.io/g/vpp-dev/message/13857 Mute This Topic: https://lists.fd.io/mt/33050491/21656 Group Owner: vpp-dev

[vpp-dev] table id for sub interfaces

2019-08-27 Thread Satya Murthy
Hi, Is there anyway I can associate a VPP sub-interface to a particular ip-fib table id ? I could able to associate a physical interface to a table id, but not a sub interface. I did not find a CLI option to do this. Any inputs pls. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You

Re: [vpp-dev] lockless architecture

2019-08-13 Thread Satya Murthy
Hi Dave, I totally agree with you that my email was an over-simplification of a bigger issue for sure. What we are trying to see is: can a single thread handle both control plane and data plane activities for a particular application object ( ex: a flow object) , so that, a need of lock can be

[vpp-dev] lockless architecture

2019-08-13 Thread Satya Murthy
Hi , Need some inputs on the lock less architecture with multi-threaded VPP system. >From the experiences we had so far, taking a lock ( whatsoever small time the >lock is taken for ) degrades the performance. Hence, trying to see if we have any feasibility of lockless architecture in VPP. We h

[vpp-dev] Is VPP vnet policer thread safe

2019-08-07 Thread Satya Murthy
Hi , Would like to know if vnet policer is thread safe or not. To be more specific:  can multiple WORKER threads (not main thread) add vnet policers at the same time without any issues ? In contrast to the "main" thread adding the policers via vpp-api, the "worker" threads add the policers due

Re: [vpp-dev] tracing packets of a specific 5-tuple

2019-08-06 Thread Satya Murthy
Thanks Dave for the inputs. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13673): https://lists.fd.io/g/vpp-dev/message/13673 Mute This Topic: https://lists.fd.io/mt/32744859/21656 Group Owner: vpp-dev+ow...@lists.fd.io

[vpp-dev] tracing packets of a specific 5-tuple

2019-08-06 Thread Satya Murthy
Hi, We have a custom graph node that receives packets from udp graph node and we would like to trace packets pertaining to a specific 5-tuple flow from our custom graph node point onwards. Does following steps really possible to achieve for this functionality ? 1. Make the custom-graph node to

  1   2   >