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] undefined symbol: ip4_reass_node

2019-06-06 Thread Dave Barach via Lists.Fd.Io
Yes, that’s one way to do it... See also Ole’s comment... D. From: vpp-dev@lists.fd.io On Behalf Of prashan...@gmail.com Sent: Thursday, June 6, 2019 12:22 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] undefined symbol: ip4_reass_node Thanks a lot Dave and Ole for your reply. I am new to V

Re: [vpp-dev] undefined symbol: ip4_reass_node

2019-06-06 Thread prashantog
Thanks a lot Dave and Ole for your reply. I am new to VPP framework using VPP version 18.04, Yes I need to send all ip fragments to ip4 reassembly node. As you suggested. > for asking the framework for a static and/or dynamic graph arc from > to “ip4-reassembly”. Does that mean adding ip4_rea

Re: [vpp-dev] undefined symbol: ip4_reass_node

2019-06-06 Thread Ole Troan
And you might not want to enable reassembly in the input feature arc, unless you want every fragment arriving on that interface to be reassembled. Independently of packet being to your feature plugin or not. Cheers Ole > On 6 Jun 2019, at 17:58, Dave Barach via Lists.Fd.Io > wrote: > > Are

Re: [vpp-dev] undefined symbol: ip4_reass_node

2019-06-06 Thread Dave Barach via Lists.Fd.Io
Are you trying to send packets to ip4-reassembly? If so, ask the framework for a static and/or dynamic graph arc from to “ip4-reassembly”. You don’t need (or want) to link against the node registration to do that. D. From: vpp-dev@lists.fd.io On Behalf Of prashan...@gmail.com Sent: Thursday,

[vpp-dev] undefined symbol: ip4_reass_node

2019-06-06 Thread prashantog
I am trying to use ip4_reass_node for that static vlib_node_registration_t ip4_reass_node; changed to extern vlib_node_registration_t ip4_reass_node; Also VLIB_REGISTER_NODE (ip4_reass_node, static) = { to VLIB_REGISTER_NODE (ip4_reass_node) = { Also Enabled the feature on interface ret = vnet_fe

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] About the order of  VLIB_INIT_FUNCTION called between different plugins

2019-06-06 Thread Dave Barach via Lists.Fd.Io
You can use vlib_get_plugin_symbol (char *plugin_name, char *symbol_name) to find the symbol you need. Clib_error_t (*fp)(vlib_main_t *) = vlib_get_plugin_symbo (“otherplugin”, “init_function_name”); if (fp == 0) Oops(other_plugin_AWOL) if ((error = (*fp)(vm))) return error; Fr

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