eal/freebsd: fix init completion
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 27 Jun 2019 11:33:45 +0000 (12:33 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 Jul 2019 15:57:06 +0000 (17:57 +0200)
When init is complete, EAL is supposed to update internal config
to indicate that initialization is complete. Add missing write.

Fixes: a99c96e96ad3 ("eal: add internal flag of init completed")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/freebsd/eal/eal.c

index a3d4863..b10e257 100644 (file)
@@ -594,6 +594,8 @@ rte_eal_mcfg_complete(void)
        /* ALL shared mem_config related INIT DONE */
        if (rte_config.process_type == RTE_PROC_PRIMARY)
                rte_config.mem_config->magic = RTE_MAGIC;
+
+       internal_config.init_complete = 1;
 }
 
 /* return non-zero if hugepages are enabled. */