examples/ethtool: display bus information
authorQiming Yang <qiming.yang@intel.com>
Wed, 4 Jan 2017 12:18:15 +0000 (20:18 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Feb 2017 21:32:52 +0000 (22:32 +0100)
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>
examples/ethtool/ethtool-app/ethapp.c

index 85c31ac..35269ea 100644 (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);
        }
 }