]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: core_linecards: Expose device PSID over device info
authorJiri Pirko <jiri@nvidia.com>
Mon, 25 Jul 2022 08:29:22 +0000 (10:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 20:56:36 +0000 (13:56 -0700)
commit3fc0c51905fb0f57d8f7093cc5efe45d8a9557ca
tree4e80c812b02c66d26d9b77220650516916805be6
parent8f9b0513a950040e2e9414059854b9a2372c1fb7
mlxsw: core_linecards: Expose device PSID over device info

Use tunneled MGIR to obtain PSID of line card device and extend
device_info_get() op to fill up the info with that.

Example:

$ devlink dev info auxiliary/mlxsw_core.lc.0
auxiliary/mlxsw_core.lc.0:
  versions:
      fixed:
        hw.revision 0
        fw.psid MT_0000000749
      running:
        ini.version 4
        fw 19.2010.1312

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/devlink/mlxsw.rst
drivers/net/ethernet/mellanox/mlxsw/core.h
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c