aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ethtool/ethtool-app/ethapp.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ethtool/ethtool-app/ethapp.c')
-rw-r--r--examples/ethtool/ethtool-app/ethapp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/ethtool/ethtool-app/ethapp.c b/examples/ethtool/ethtool-app/ethapp.c
index 38e466c0..6aeaa061 100644
--- a/examples/ethtool/ethtool-app/ethapp.c
+++ b/examples/ethtool/ethtool-app/ethapp.c
@@ -177,6 +177,7 @@ pcmd_drvinfo_callback(__rte_unused void *ptr_params,
int id_port;
for (id_port = 0; id_port < rte_eth_dev_count(); id_port++) {
+ memset(&info, 0, sizeof(info));
if (rte_ethtool_get_drvinfo(id_port, &info)) {
printf("Error getting info for port %i\n", id_port);
return;