summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f170b4)
raw | patch | inline | side by side (parent: 5f170b4)
author | Maryam Tahhan <maryam.tahhan@intel.com> | |
Tue, 5 Apr 2016 09:48:04 +0000 (10:48 +0100) | ||
committer | Kim Jones <kim-marie.jones@intel.com> | |
Thu, 28 Jul 2016 12:16:42 +0000 (13:16 +0100) |
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Harry Van Haaren <harry.van.haaren@intel.com>
Reviewed-by: Harry Van Haaren <harry.van.haaren@intel.com>
src/dpdkstat.c | patch | blob | history |
diff --git a/src/dpdkstat.c b/src/dpdkstat.c
index e451990d58c55e45c951176e5449b5d0089b0517..096bfed28d8a37691d2506b3332d3e371bd4c822 100644 (file)
--- a/src/dpdkstat.c
+++ b/src/dpdkstat.c
len = g_configuration->num_stats_in_port[enabled_port_count];
g_configuration->port_read_time[enabled_port_count] = cdtime();
ret = rte_eth_xstats_get(i, &g_configuration->xstats + num_xstats,
- g_configuration->num_stats_in_port[i]);
+ g_configuration->num_stats_in_port[enabled_port_count]);
if (ret < 0 || ret != len) {
DEBUG("dpdkstat-helper: Error reading xstats on port %d len = %d\n",
i, len);