Add llc_init in osi_init to ensure init order dependency
Change-Id: I5cb2a319384e49a072d75f3ea05e6fb92e381c23 Signed-off-by: Nagaprabhanjan Bellari <nagp.lists@gmail.com>
This commit is contained in:

committed by
Gerrit Code Review

parent
ca46d8c501
commit
a0005dc347
@ -167,8 +167,15 @@ static void add_protocol (osi_main_t * pm,
|
||||
|
||||
static clib_error_t * osi_init (vlib_main_t * vm)
|
||||
{
|
||||
clib_error_t * error = 0;
|
||||
osi_main_t * pm = &osi_main;
|
||||
|
||||
/* init order dependency: llc_init -> osi_init */
|
||||
if ((error = vlib_call_init_function(vm, llc_init)))
|
||||
{
|
||||
return error;
|
||||
}
|
||||
|
||||
memset (pm, 0, sizeof (pm[0]));
|
||||
pm->vlib_main = vm;
|
||||
|
||||
|
Reference in New Issue
Block a user