]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Added devlink info callback
authorShay Agroskin <shayag@mellanox.com>
Tue, 2 Jul 2019 23:55:11 +0000 (23:55 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 4 Jul 2019 20:43:16 +0000 (16:43 -0400)
commit4336c39723ca2c4f7f585bae556594b44259464b
treefd30e0760dcb9f1c75342b4d40ef3537bb536c1c
parent8e8b9d7ac518edb7e3f3cc33e4f7140427653ac5
net/mlx5: Added devlink info callback

The callback is invoked using 'devlink dev info <pci>' command and returns
the running and pending firmware version of the HCA and the name of the
kernel driver.

If there is a pending firmware version (a new version is burned but the
HCA still runs with the previous) it is returned as the stored
firmware version. Otherwise, the running version is returned for this
field.

Output example:
$ devlink dev info pci/0000:00:06.0
pci/0000:00:06.0:
  driver mlx5_core
  versions:
      fixed:
        fw.psid MT_0000000009
      running:
        fw.version 16.26.0100
      stored:
        fw.version 16.26.0100

Signed-off-by: Shay Agroskin <shayag@mellanox.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Documentation/networking/device_drivers/mellanox/mlx5.rst
drivers/net/ethernet/mellanox/mlx5/core/devlink.c