[vpp-dev] Classifying packets in custom plugins

2019-05-16 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 v

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

2019-05-21 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 t

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

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 th

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 so

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 respe

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): https://list

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

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

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 Owner

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

[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 index=0

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 i

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: https://lists.fd.io/mt/31878554/

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 (my_custom_plugin_in

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 thi

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: https://li

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 t

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 i

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 t

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

2019-06-06 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 initialization.

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 run

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, w

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

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

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 V

[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" remote-interfac

[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+ow...@lists.fd.io

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

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

[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

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

[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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

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

[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

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

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

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

  1   2   >