From: Taras Chornyi Date: Wed, 22 Mar 2017 10:54:31 +0000 (+0000) Subject: dpdkstat: Enable all ports by default. X-Git-Tag: collectd-5.8.0~204^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=79ca67ff20812ad81605c3419306c9e39e139198;p=collectd.git dpdkstat: Enable all ports by default. If "EnabledPortMask" option is not set all DPDK ports will be monitored. Signed-off-by: Taras Chornyi --- diff --git a/src/dpdkstat.c b/src/dpdkstat.c index 6b057f21..cfe993cb 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -103,6 +103,8 @@ static void dpdk_stats_default_config(void) { for (int i = 0; i < RTE_MAX_ETHPORTS; i++) { ec->config.port_name[i][0] = 0; } + /* Enable all ports by default */ + ec->config.enabled_port_mask = ~0; } static int dpdk_stats_preinit(void) {