aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device
diff options
context:
space:
mode:
authorDmitry Vakrhushev <dmitry@netgate.com>2020-11-06 05:20:13 -0500
committerMatthew Smith <mgsmith@netgate.com>2020-11-19 20:54:53 +0000
commit83f37fc3bde149cc8cde7413691da1442dbf8f09 (patch)
tree6a540b84b6772320d5f841ae045d8740f250f1c3 /src/plugins/dpdk/device
parent97d6860b229e15c5d34931f6ca440adb32e600dc (diff)
dpdk: Telemetry thread is off by default.
Currently thread with telemetry is enabled by default, to prevent to use resources, thread should be off. The thread can be switch on back using additional option in the dpdk's stanza. dpdk { telemetry } Type: feature Change-Id: I1c25e8ee99f31dd01dc372f54e77e81a5bb67126 Signed-off-by: Dmitry Vakrhushev <dmitry@netgate.com>
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r--src/plugins/dpdk/device/dpdk.h1
-rw-r--r--src/plugins/dpdk/device/init.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h
index ee768f251c6..c81f23d769c 100644
--- a/src/plugins/dpdk/device/dpdk.h
+++ b/src/plugins/dpdk/device/dpdk.h
@@ -283,6 +283,7 @@ typedef struct
u8 no_multi_seg;
u8 enable_tcp_udp_checksum;
u8 no_tx_checksum_offload;
+ u8 enable_telemetry;
/* Required config parameters */
u8 coremask_set_manually;
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index 4b200cef8bb..58de03b5343 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -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);