]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-line-card-model'
authorDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2022 09:42:29 +0000 (10:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Apr 2022 09:42:29 +0000 (10:42 +0100)
commit8683e625881d51a0560d5fe96a6678dfd386193d
treefe6c72661e8e5b21a85390f31cf6e6abbb5afb52
parentfcc4a8b458f7feec7c313ad882f6fdf544a99dfe
parent23a465c7a6352de20e9f3b67b79372bab51b49d3
Merge branch 'mlxsw-line-card-model'

Ido Schimmel says:

====================
mlxsw: extend line card model by devices and info

Jiri says:

This patchset is extending the line card model by three items:
1) line card devices
2) line card info
3) line card device info

First three patches are introducing the necessary changes in devlink
core.

Then, all three extensions are implemented in mlxsw alongside with
selftest.

Examples:
$ devlink lc show pci/0000:01:00.0 lc 8
pci/0000:01:00.0:
  lc 8 state active type 16x100G
    supported_types:
      16x100G
    devices:
      device 0
      device 1
      device 2
      device 3
$ devlink lc info pci/0000:01:00.0 lc 8
pci/0000:01:00.0:
  lc 8
    versions:
        fixed:
          hw.revision 0
        running:
          ini.version 4
    devices:
      device 0
        versions:
            running:
              fw 19.2010.1310
      device 1
        versions:
            running:
              fw 19.2010.1310
      device 2
        versions:
            running:
              fw 19.2010.1310
      device 3
        versions:
            running:
              fw 19.2010.1310

Note that device FW flashing is going to be implemented in the follow-up
patchset.
====================

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