build: Fix 'make build VPP_EXTRA_CMAKE_ARGS=-DVPP_ENABLE_SANITIZE_ADDR=ON' error...
[vpp.git] / src / vcl / vcl_cfg.c
index 2e180f4..f7e271b 100644 (file)
@@ -19,7 +19,7 @@
  *       Do not access it directly -- use vcm which will point to
  *       the heap allocated copy after init.
  */
-static vppcom_main_t _vppcom_main = {
+vppcom_main_t _vppcom_main = {
   .debug = VPPCOM_DEBUG_INIT,
   .is_init = 0,
   .app_index = ~0,
@@ -498,6 +498,12 @@ vppcom_cfg_read_file (char *conf_fname)
              VCFG_DBG (0, "VCL<%d>: configured tls-engine %u (0x%x)",
                        getpid (), vcl_cfg->tls_engine, vcl_cfg->tls_engine);
            }
+         else if (unformat (line_input, "multi-thread-workers"))
+           {
+             vcl_cfg->mt_wrk_supported = 1;
+             VCFG_DBG (0, "VCL<%d>: configured with multithread workers",
+                       getpid ());
+           }
          else if (unformat (line_input, "}"))
            {
              vc_cfg_input = 0;