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

2017-08-30 Thread wang.hui56
Hi all: How to control the order of VLIB_INIT_FUNCTION (user xxx_init function) called between Different plugins? It depends on plugin name?or the sequence of loading plugin ? or is there any other way to adjust the order? Thanks~ 王辉 wanghui IT开发工程师 IT Development Engin

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

2017-08-30 Thread Dave Barach (dbarach)
Sent: Wednesday, August 30, 2017 4:01 AM To: vpp-dev@lists.fd.io Cc: zhao.qingl...@zte.com.cn; wu.bi...@zte.com.cn; gu.ji...@zte.com.cn; dong.ju...@zte.com.cn Subject: [vpp-dev] About the order of VLIB_INIT_FUNCTION called between different plugins Hi all: How to control the order of

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

2017-08-30 Thread Damjan Marion (damarion)
ji...@zte.com.cn; > dong.ju...@zte.com.cn > Subject: [vpp-dev] About the order of VLIB_INIT_FUNCTION called between > different plugins > > Hi all: > > How to control the order of VLIB_INIT_FUNCTION (user xxx_init function) > called between Different plugins? > > I

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

2017-08-31 Thread Dave Barach (dbarach)
.io; zhao.qingl...@zte.com.cn; wu.bi...@zte.com.cn; gu.ji...@zte.com.cn; dong.ju...@zte.com.cn; Dave Barach (dbarach) Subject: 答复: Re: [vpp-dev] About the order of VLIB_INIT_FUNCTION called between different plugins Thanks you two for the help~ Now we knew that plugins startup maybe has no order ,

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

2019-06-04 Thread Damjan Marion via Lists.Fd.Io
> On 4 Jun 2019, at 09:08, Satya Murthy wrote: > > 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 tha

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-04 Thread Neale Ranns via Lists.Fd.Io
; /neale De : au nom de Satya Murthy Date : mardi 4 juin 2019 à 13:07 À : "vpp-dev@lists.fd.io" Objet : Re: [vpp-dev] About the order of VLIB_INIT_FUNCTION called between different plugins Sorry. I should have asked how to get the init functions in a specific order. Coz, ACL pl

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 Dave Barach via Lists.Fd.Io
; From: vpp-dev@lists.fd.io On Behalf Of Satya Murthy Sent: Thursday, June 6, 2019 4:27 AM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] About the order of VLIB_INIT_FUNCTION called between different plugins Hi Neale, Thanks for the information. I have been trying to use this approach but not

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