[vpp-dev] Classifying packets in custom plugins

2019-05-17 Thread Satya Murthy
Hi VPP-Experts, We need to classify the packets in our custom plugins in synchronous to some other functionality. To achieve this: we are planning to use following approach. Can you let us know, if this approach works fine without any unforeseen road blocks at some point. 1. Use the existing

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-04 Thread Satya Murthy
Thanks Ben. Do you see any other way to achieve this order in previous versions of the code. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13213): https://lists.fd.io/g/vpp-dev/message/13213 Mute This Topic:

Re: [vpp-dev] About the order of  VLIB_INIT_FUNCTION called between different plugins

2019-06-04 Thread Satya Murthy
Sorry. I should have asked how to get the init functions in a specific order. Coz, ACL plugin init is getting called after my customplugin init and hence the registration from my plugin is getting wiped off. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-03 Thread Satya Murthy
Hi Andrew, I got what the issue is, but not sure how to get around this problem. My plugin is first subscribing for ACL service by calling register_user_module. Also, I could see that it is getting added into acl_users. But, after this, acl_init() is getting called, due to which, the acl_users

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-03 Thread Satya Murthy
Thanks Ben for the quick inputs. Will try this and update this thread. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13204): https://lists.fd.io/g/vpp-dev/message/13204 Mute This Topic:

Re: [vpp-dev] cache hits/misses per graph node

2019-05-31 Thread Satya Murthy
Thanks Damjon for the info. Will try these inputs. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13190): https://lists.fd.io/g/vpp-dev/message/13190 Mute This Topic: https://lists.fd.io/mt/31866981/21656 Group Owner:

Re: [vpp-dev] cache hits/misses counters per plugin/graph node

2019-05-31 Thread Satya Murthy
Thanks Dave for the quick info. Will try these things. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13189): https://lists.fd.io/g/vpp-dev/message/13189 Mute This Topic: https://lists.fd.io/mt/31867441/21656 Group

[vpp-dev] duplicate user id allocation in ACL plugin

2019-05-31 Thread Satya Murthy
Hi , I am trying to register my plugin as an ACL user by using  register_user_module(). I am getting a user_id of value 0. ( by looking at my logs, I could confirm this ) However, when I see  vppctl CLI "show acl-plugin lookup user" , its showing "abp" plugin got registered with user_id

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-07 Thread Satya Murthy
Hi Andrew, I was trying to get this info on one other thread and did not realize your message in this thread. If I put this in feature_enable function, I need to trigger this function via API (or) CLI, which we want to avoid. We want to get the registration as part of our plugin

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-07 Thread Satya Murthy
Hi Andrew, One difference I see between our plugin vs Gbp plugin is: In Gbp plugin, register_module is getting called as part of an API handler, which is usually after the system comes to a stable state. Whereas in our case, we are calling register_module as part of our plugin init function,

Re: [vpp-dev] cache hits/misses counters per plugin/graph node

2019-06-07 Thread Satya Murthy
Hi Dave, I tried using the perfmon plugin for cpu-cycles event on continuous ping over a memif channel. But, I am seeing that the command always return saying "Data Collection in progress". DBGvpp# set pmc cpu-cycles Start collection for 1 events, wait 1.00 seconds DEADMAN: collection still

[vpp-dev] cache hits/misses counters per plugin/graph node

2019-05-30 Thread Satya Murthy
Hi, Is there any way we can get the cache hits/misses ( I-Cache and D-Cache ) for a specific plugin/graph node ? Linux perf tools give these at the process level, but may not be much help if we want to really bench mark a specific graph node. Any info in this regard ? -- Thanks & Regards,

[vpp-dev] cache hits/misses per graph node

2019-05-30 Thread Satya Murthy
Hi, Is there any built-in framework/CLI within VPP, that keeps track of cache hits/misses for D-cache and I-Cache at graph node or plugin level ? (or) we need to use general linux perf tools for getting this data ? Even if we do this using perf tools, we may get this at the whole process

Re: [vpp-dev] About the order of  VLIB_INIT_FUNCTION called between different plugins

2019-06-04 Thread Satya Murthy
Hi Damjan, In the example you mentioned where bar_init() is trying to find if foo_plugin is really loaded or not. If foo_plugin is found to be not loaded, a warning is printed and returning a 0. But this does not gaurantee that bar_init() is called once again after a while, isnt it ? So, in

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-03 Thread Satya Murthy
Hi Ben, I dont see any constructs called runs_before or runs_after within VLIB_INIT_FUNCTION macro. I am getting compilation error when I try these changes. I could not find any VLIB_INITS in 1810 (or) 1904 versions of the code. Here is the code I tried. VLIB_INIT_FUNCTION

Re: [vpp-dev] About the order of  VLIB_INIT_FUNCTION called between different plugins

2019-06-06 Thread Satya Murthy
Hi Neale, Thanks for the information. I have been trying to use this approach but not successful. I am trying to call acl plugin's init function from my custom plugin. But, looks like, it is not able to get the acl_init symbol, and hence the custom plugin loading itself is failing. Following

Re: [vpp-dev] About the order of  VLIB_INIT_FUNCTION called between different plugins

2019-06-06 Thread Satya Murthy
Donno, my previous reply didnt come to the group, hence resending. Hi Dave, In fact, I tried using vlib_get_plugin_symbol for acl_init() function. But, since its a static function, I am returned with NULL. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent

[vpp-dev] PerfMon Plugin Issue

2019-06-14 Thread Satya Murthy
Hi , I am trying to use the perfmon plugin for cpu-cycles event. I am doing a continuous ping over a memif channel. But, I am seeing that the command always return saying "Data Collection in progress". DBGvpp# set pmc cpu-cycles Start collection for 1 events, wait 1.00 seconds DEADMAN:

Re: [vpp-dev] duplicate user id allocation in ACL plugin

2019-06-10 Thread Satya Murthy
Hi Andrew, We dont want to have any extra config/APIs to drive this registration and hence, we did not go via that approach. To work around this, I have started a timer of 1 sec in my custom plugin init function. After 1 sec, I am registering with the ACL service, and this solved my issue for

Re: [vpp-dev] PerfMon Plugin Issue

2019-06-17 Thread Satya Murthy
Hi Dave, Thanks for the reply. I am still seeing the same issue. Here is what I am doing. 1) Created 2 VPP instances 2) Created Memif interfaces on each of them and assigned IP addresses to them 3) Able to ping the IPs from one another successfully. 4) On VPP-1, started ping of interface on

[vpp-dev] Packet classification based on range of values

2019-05-22 Thread Satya Murthy
Hi, >From the documentation I have read so far and from the classifier code I have >gone through: VPP classifier works on mask and match to classify the packets. But, I didnt see any logic in the classifier code that classifies packets based on any rule like "range of values". For example: is

Re: [vpp-dev] Programming(add/del/mod) ACLs from another plugin

2019-05-23 Thread Satya Murthy
Hi Neale, Thank you very much for the reply. The main problem that we are facing is: The plugin that we are planning to develop need to configure the classification rules dynamically ( ACLs ). Hence, we can not use VPP-API approach to configure the ACLs first. We need to add the ACLs based on

Re: [vpp-dev] Packet classification based on range of values

2019-05-23 Thread Satya Murthy
Hi Andrew, Our custom plugin will receive these rules per each session from an external entity. The number of sessions may go into millions. Yes, as you rightly said, these are rules are very dynamic in nature and these will be added and deleted with addition of session and it's deletion

Re: [vpp-dev] Packet classification based on range of values

2019-05-23 Thread Satya Murthy
Hi Andrew, Sure. I am in the process of doing the harness code to test the ACL-plugin approach. Will post the results to this thread in a week's time. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13135):

[vpp-dev] Programming(add/del/mod) ACLs from another plugin

2019-05-23 Thread Satya Murthy
Hi , We are planning to use "ACL as a service" framework using the lookup contexts for performing packet classifications from our custom plugin. While this seem to be achievable, we have one issue at our hand. We would like to program the ACLs ( add/delete of ACL rules ) also from our custom

Re: [vpp-dev] Packet classification based on range of values

2019-05-23 Thread Satya Murthy
Thanks Andrew for the reply. Instead, now, we are looking at "ACL lookup context" framework to add them as acl rules and use for packet classification. Hope this should work for us without any issues. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to

[vpp-dev] Memif broken for Multi threaded environment ?

2019-04-19 Thread Satya Murthy
Hi VPP-Folks, I am a newbie to VPP and trying out my hands on memif. While I was able to run the icmpr-epoll example with VPP and check the communication using ping command. But, as soon as I move the icmp side example to multithreaded version (icmpr-mt), ping fails from VPP side with reason

[vpp-dev] MemIf interface selection for TX traffic

2019-07-01 Thread Satya Murthy
Hi , Have a question on the Memif TX interface selection. I have VPP with 2 worker threads connecting to an external application. Have two memif interfaces, so that each thread can make use of one Memif interface dedicately. show memif interface memif0/0 remote-name "remoteApp"

[vpp-dev] Multi threaded memif broken ?

2019-04-25 Thread Satya Murthy
Trying my luck once again. Hi VPP-Folks, I am a newbie to VPP and trying out my hands on memif. I was able to run the icmpr-epoll example with VPP and check the communication using ping command. But,  as soon as I move the icmp example to multithreaded version (icmpr-mt), ping fails from VPP

[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

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

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

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

[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

[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

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:

[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

[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

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

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

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):

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:

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.

[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

[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

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

[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

[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

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):

[vpp-dev] accessing object pools from multiple threads

2019-09-25 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

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

[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

[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

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

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

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

[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

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

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

[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

[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

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

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

[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

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

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

[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

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

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

[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

[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

[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

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:

[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