Hi Satya,
Yes you can add dependencies, see
https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blob;f=docs/gettingstarted/developers/vlib.md
VLIB_INIT_FUNCTION(my_init_function) =
{
.runs_before = VLIB_INITS("we_run_before_function_1",
"we_run_before_function_2"),
.runs_after = VLIB_INITS("we_run_after_function_1",
"we_run_after_function_2),
};
ben
> -----Original Message-----
> From: [email protected] <[email protected]> On Behalf Of Satya Murthy
> Sent: lundi 3 juin 2019 13:06
> To: [email protected]
> Subject: Re: [vpp-dev] duplicate user id allocation in ACL plugin
>
> 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
> is getting memset to 0, and hence my registration is getting lost.
>
> Basically, this issue is happening due to the order in which the plugin
> inits are getting called.
>
> Is there anyway that calls my plugin init, after ACL plugin init ?
> Is there any dependency I can make to control the order of plugin inits.
> If no framework for this, how we can get around this issue.
>
> Pls share your views.
>
> --
> Thanks & Regards,
> Murthy
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13202): https://lists.fd.io/g/vpp-dev/message/13202
Mute This Topic: https://lists.fd.io/mt/31878554/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-