linux/Documentation/networking/devlink
Brett Creeley b726ddf984 ice: Print the api_patch as part of the fw.mgmt.api
Currently when a user uses "devlink dev info", the fw.mgmt.api will be
the major.minor numbers as shown below:

devlink dev info pci/0000:3b:00.0
pci/0000:3b:00.0:
  driver ice
  serial_number 00-01-00-ff-ff-00-00-00
  versions:
      fixed:
        board.id K91258-000
      running:
        fw.mgmt 6.1.2
        fw.mgmt.api 1.7 <--- No patch number included
        fw.mgmt.build 0xd75e7d06
        fw.mgmt.srev 5
        fw.undi 1.2992.0
        fw.undi.srev 5
        fw.psid.api 3.10
        fw.bundle_id 0x800085cc
        fw.app.name ICE OS Default Package
        fw.app 1.3.27.0
        fw.app.bundle_id 0xc0000001
        fw.netlist 3.10.2000-3.1e.0
        fw.netlist.build 0x2a76e110
      stored:
        fw.mgmt.srev 5
        fw.undi 1.2992.0
        fw.undi.srev 5
        fw.psid.api 3.10
        fw.bundle_id 0x800085cc
        fw.netlist 3.10.2000-3.1e.0
        fw.netlist.build 0x2a76e110

There are many features in the driver that depend on the major, minor,
and patch version of the FW. Without the patch number in the output for
fw.mgmt.api debugging issues related to the FW API version is difficult.
Also, using major.minor.patch aligns with the existing firmware version
which uses a 3 digit value.

Fix this by making the fw.mgmt.api print the major.minor.patch
versions. Shown below is the result:

devlink dev info pci/0000:3b:00.0
pci/0000:3b:00.0:
  driver ice
  serial_number 00-01-00-ff-ff-00-00-00
  versions:
      fixed:
        board.id K91258-000
      running:
        fw.mgmt 6.1.2
        fw.mgmt.api 1.7.9 <--- patch number included
        fw.mgmt.build 0xd75e7d06
        fw.mgmt.srev 5
        fw.undi 1.2992.0
        fw.undi.srev 5
        fw.psid.api 3.10
        fw.bundle_id 0x800085cc
        fw.app.name ICE OS Default Package
        fw.app 1.3.27.0
        fw.app.bundle_id 0xc0000001
        fw.netlist 3.10.2000-3.1e.0
        fw.netlist.build 0x2a76e110
      stored:
        fw.mgmt.srev 5
        fw.undi 1.2992.0
        fw.undi.srev 5
        fw.psid.api 3.10
        fw.bundle_id 0x800085cc
        fw.netlist 3.10.2000-3.1e.0
        fw.netlist.build 0x2a76e110

Fixes: ff2e5c700e ("ice: add basic handler for devlink .info_get")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-10-14 10:14:46 -07:00
..
am65-nuss-cpsw-switch.rst net: ti: am65-cpsw-nuss: Add devlink support 2021-02-11 17:52:13 -08:00
bnxt.rst bnxt_en: Fix "fw.mgmt" and "fw.nsci" info via devlink info_get cb 2020-03-27 15:34:43 -07:00
devlink-dpipe.rst devlink: fix typo in documentation 2021-03-13 18:11:24 -08:00
devlink-flash.rst devlink: introduce flash update overwrite mask 2020-09-25 17:20:57 -07:00
devlink-health.rst docs: net: add missing devlink health cmd - trigger 2021-03-13 18:12:43 -08:00
devlink-info.rst devlink: Add support for board.serial_number to info_get cb. 2020-06-22 16:15:04 -07:00
devlink-params.rst devlink: Add new "enable_vnet" generic device param 2021-08-11 14:34:21 +01:00
devlink-port.rst Documentation: devlink rate objects 2021-06-02 14:08:37 -07:00
devlink-region.rst docs: networking: devlink: avoid using ReST :doc:foo markup 2021-06-17 13:24:38 -06:00
devlink-reload.rst devlink: Add Documentation/networking/devlink/devlink-reload.rst 2020-10-09 12:06:53 -07:00
devlink-resource.rst mlxsw: Register physical ports as a devlink resource 2021-01-22 20:42:13 -08:00
devlink-trap.rst Networking changes for 5.14. 2021-06-30 15:51:09 -07:00
hns3.rst devlink: add documentation for hns3 driver 2021-07-26 12:16:03 +01:00
ice.rst ice: Print the api_patch as part of the fw.mgmt.api 2021-10-14 10:14:46 -07:00
index.rst docs: devlink: remove the references to sja1105 2021-08-22 09:49:03 +01:00
ionic.rst devlink: add documentation for ionic device driver 2020-01-10 17:07:00 -08:00
mlx4.rst devlink: add a file documenting devlink regions 2020-01-10 17:07:00 -08:00
mlx5.rst net/mlx5e: Add devlink fdb_large_groups parameter 2020-02-27 16:40:19 -08:00
mlxsw.rst mlxsw: Add irif and erif disabled traps 2020-01-19 16:23:52 +01:00
mv88e6xxx.rst devlink: convert driver-specific files to reStructuredText 2020-01-10 17:06:59 -08:00
netdevsim.rst Documentation: devlink rate objects 2021-06-02 14:08:37 -07:00
nfp.rst devlink: document info versions for each driver 2020-01-10 17:06:59 -08:00
prestera.rst documentation: networking: devlink: fix prestera.rst formatting that causes build warnings 2021-06-17 11:22:46 -07:00
qed.rst devlink: fix typos in qed documentation 2020-01-15 23:14:31 +01:00
ti-cpsw-switch.rst devlink: convert driver-specific files to reStructuredText 2020-01-10 17:06:59 -08:00