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

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

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

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

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

[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

[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

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

<    1   2