summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/osi/osi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vnet/vnet/osi/osi.c b/vnet/vnet/osi/osi.c
index 7313dab1937..1825af1f045 100644
--- a/vnet/vnet/osi/osi.c
+++ b/vnet/vnet/osi/osi.c
@@ -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;