dpdk: Telemetry thread is off by default.
[vpp.git] / src / plugins / dpdk / device / init.c
index 4b200ce..58de03b 100644 (file)
@@ -1196,6 +1196,8 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
        {
          vec_add1 (conf->eal_init_args, (u8 *) "--no-huge");
        }
+      else if (unformat (input, "telemetry"))
+       conf->enable_telemetry = 1;
 
       else if (unformat (input, "enable-tcp-udp-checksum"))
        conf->enable_tcp_udp_checksum = 1;
@@ -1360,6 +1362,12 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
   }));
   /* *INDENT-ON* */
 
+  /* on/off dpdk's telemetry thread */
+  if (conf->enable_telemetry == 0)
+    {
+      vec_add1 (conf->eal_init_args, (u8 *) "--no-telemetry");
+    }
+
   if (!file_prefix)
     {
       tmp = format (0, "--file-prefix%c", 0);