From: Ruben Kerkhof Date: Sun, 26 Mar 2017 13:32:41 +0000 (+0200) Subject: Merge pull request #2225 from maryamtahhan/dpdstat_portmask_fix X-Git-Tag: collectd-5.8.0~204 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=3271743f84365c35d69e0124161c170d69ddc279;hp=8be4f037005245971f3ffee6623e69226790ca72 Merge pull request #2225 from maryamtahhan/dpdstat_portmask_fix dpdkstat: Enable all ports by default. --- 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) {