[Intel-wired-lan] [PATCH v3 8/9] ice: add basic handler for devlink .info_get
andrewx.bowers at intel.com
Mon Mar 16 20:23:34 UTC 2020
From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Jacob Keller
Sent: Wednesday, March 11, 2020 6:58 PM
To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
Cc: Jakub Kicinski <kuba at kernel.org>
Subject: [Intel-wired-lan] [PATCH v3 8/9] ice: add basic handler for devlink .info_get
The devlink .info_get callback allows the driver to report detailed version information. The following devlink versions are reported with this initial implementation:
"fw.mgmt" -> The version of the firmware that controls PHY, link, etc "fw.mgmt.api" -> API version of interface exposed over the AdminQ "fw.mgmt.build" -> Unique build id of the source for the management fw "fw.undi" -> Version of the Option ROM containing the UEFI driver "fw.psid.api" -> Version of the NVM image format.
"fw.bundle_id" -> Unique identifier for the combined flash image.
"fw.app.name" -> The name of the active DDP package.
"fw.app" -> The version of the active DDP package.
With this, devlink dev info can report at least as much information as is reported by ETHTOOL_GDRVINFO.
Compare the output from ethtool vs from devlink:
$ ethtool -i ens785s0
firmware-version: 0.80 0x80002ec0 1.2581.0
$ devlink dev info pci/0000:3b:00.0
serial number 00-01-ab-ff-ff-ca-05-68
fw.app.name ICE OS Default Package
More pieces of information can be displayed, each version is kept separate instead of munged together, and each version has an identifier which comes with associated documentation.
Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
Documentation/networking/devlink/ice.rst | 67 +++++++
Documentation/networking/devlink/index.rst | 1 +
drivers/net/ethernet/intel/ice/ice_devlink.c | 189 +++++++++++++++++++
3 files changed, 257 insertions(+)
create mode 100644 Documentation/networking/devlink/ice.rst
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan