[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

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] 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] 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] 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

[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] 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] 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] 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

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

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.

[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] 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,

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-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] 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.

[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

[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] 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] 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] 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

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.

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 -=-=-=-=-=-=-=-=

[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

[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

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

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] 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

[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

<    1   2