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>
This commit is contained in:
Qiming Yang 2017-01-04 20:18:15 +08:00 committed by Thomas Monjalon
parent 3b780b9e9e
commit 20541112a9

View File

@ -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);
}
}