]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'implement-dev-info-and-dev-flash-for-line-cards'
authorJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 20:54:58 +0000 (13:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 20:56:45 +0000 (13:56 -0700)
commit40c5caa69fb6399d9cfd9005f12f412c31914ca6
tree6dc06a019727056f68fedb8bc24859584d353a3d
parentcbc9dd787e48c479d0ac994645a4a0ed038470c6
parent4190aeaf0457ff3b680a6ddb19f245e01c088190
Merge branch 'implement-dev-info-and-dev-flash-for-line-cards'

Jiri Pirko says:

====================
Implement dev info and dev flash for line cards

This patchset implements two features:
1) "devlink dev info" is exposed for line card (patches 6-9)
2) "devlink dev flash" is implemented for line card gearbox
   flashing (patch 10)

For every line card, "a nested" auxiliary device is created which
allows to bind the features mentioned above (patch 4).

The relationship between line card and its auxiliary dev devlink
is carried over extra line card netlink attribute (patches 3 and 5).

The first patch removes devlink_mutex from devlink_register/unregister()
which eliminates possible deadlock during devlink reload command. The
second patchset follows up with putting net pointer check into new
helper.

Examples:

$ devlink lc show pci/0000:01:00.0 lc 1
pci/0000:01:00.0:
  lc 1 state active type 16x100G nested_devlink auxiliary/mlxsw_core.lc.0
    supported_types:
       16x100G

$ devlink dev show auxiliary/mlxsw_core.lc.0
auxiliary/mlxsw_core.lc.0

$ 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

$ devlink dev flash auxiliary/mlxsw_core.lc.0 file mellanox/fw-AGB-rel-19_2010_1312-022-EVB.mfa2
====================

Link: https://lore.kernel.org/r/20220725082925.366455-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>