Merge pull request #2225 from maryamtahhan/dpdstat_portmask_fix
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 26 Mar 2017 13:32:41 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Mar 2017 13:32:41 +0000 (15:32 +0200)
dpdkstat: Enable all ports by default.

src/dpdkstat.c

index 6b057f2..cfe993c 100644 (file)
@@ -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) {