Merge branch 'mlxsw-Add-support-for-devlink-info-command'
authorDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 23:28:01 +0000 (16:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 23:28:01 +0000 (16:28 -0700)
commit13ee7d49733b4579566f72c29b336a33cf3233c7
tree19759a7228e86309a727608a94e7d55026022431
parente4bf63482c309287ca84d91770ffa7dcc18e37eb
parentbe0faac952e1643237931956ab8ec5ceaeda41b0
Merge branch 'mlxsw-Add-support-for-devlink-info-command'

Ido Schimmel says:

====================
mlxsw: Add support for devlink info command

Shalom says:

Expose the following ASIC information via devlink info command:
  - Driver name
  - Hardware revision
  - Firmware PSID
  - Running firmware version

Standard output example:
  $ devlink dev info pci/0000:03:00.0
  pci/0000:03:00.0:
    versions:
        fixed:
          hw.revision A0
          fw.psid MT_2750110033
        running:
          fw.version 13.1910.622

Pretty JSON example:
  $ devlink -jp dev info pci/0000:03:00.0
  {
      "info": {
          "pci/0000:03:00.0": {
              "versions": {
                  "fixed": {
                      "hw.revision": "A0",
                      "fw.psid": "MT_2750110033"
                  },
                  "running": {
                      "fw.version": "13.1910.622"
                  }
              }
          }
      }
  }

v2:
  - Add fw.psid documentation
  - Add driver name
====================

Signed-off-by: David S. Miller <davem@davemloft.net>