summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiming Yang <qiming.yang@intel.com>2017-01-04 20:18:15 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-02-09 22:32:52 +0100
commit20541112a98ba7894ee14491ecb9d2a123abd60e (patch)
tree4f8d3958782daa17a8fbfd7f70ca59a30ca7508a
parent3b780b9e9e9221725abbad9820704d05d7d2805e (diff)
downloaddpdk-20541112a98ba7894ee14491ecb9d2a123abd60e.zip
dpdk-20541112a98ba7894ee14491ecb9d2a123abd60e.tar.gz
dpdk-20541112a98ba7894ee14491ecb9d2a123abd60e.tar.xz
examples/ethtool: display bus information
This patch enhances the ethtool example to support to show bus information, in the same way that the Linux kernel ethtool does. Signed-off-by: Qiming Yang <qiming.yang@intel.com> Acked-by: Remy Horton <remy.horton@intel.com>
-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 85c31ac..35269ea 100644
--- a/examples/ethtool/ethtool-app/ethapp.c
+++ b/examples/ethtool/ethtool-app/ethapp.c
@@ -186,6 +186,7 @@ pcmd_drvinfo_callback(__rte_unused void *ptr_params,
id_port, info.driver, info.version
);
printf("firmware-version: %s\n", info.fw_version);
+ printf("bus-info: %s\n", info.bus_info);
}
}