summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
diff options
context:
space:
mode:
authorShay Agroskin2019-07-03 01:55:11 +0200
committerSaeed Mahameed2019-07-04 22:43:16 +0200
commit8338d93788950e63d12bd1d5eb09e239550e80e9 (patch)
treefd30e0760dcb9f1c75342b4d40ef3537bb536c1c /drivers/net/ethernet/mellanox/mlx5/core/en_main.c
parentnet/mlx5: Added fw version query command (diff)
downloadkernel-qcow2-linux-8338d93788950e63d12bd1d5eb09e239550e80e9.tar.gz
kernel-qcow2-linux-8338d93788950e63d12bd1d5eb09e239550e80e9.tar.xz
kernel-qcow2-linux-8338d93788950e63d12bd1d5eb09e239550e80e9.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_main.c')
0 files changed, 0 insertions, 0 deletions