lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220425034431.3161260-1-idosch@nvidia.com>
Date:   Mon, 25 Apr 2022 06:44:20 +0300
From:   Ido Schimmel <idosch@...dia.com>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
        jiri@...dia.com, petrm@...dia.com, dsahern@...il.com,
        andrew@...n.ch, mlxsw@...dia.com, Ido Schimmel <idosch@...dia.com>
Subject: [PATCH net-next 00/11] 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.

Jiri Pirko (11):
  devlink: introduce line card devices support
  devlink: introduce line card info get message
  devlink: introduce line card device info infrastructure
  mlxsw: reg: Extend MDDQ by device_info
  mlxsw: core_linecards: Probe provisioned line cards for devices and
    attach them
  selftests: mlxsw: Check devices on provisioned line card
  mlxsw: core_linecards: Expose HW revision and INI version
  selftests: mlxsw: Check line card info on provisioned line card
  mlxsw: reg: Extend MDDQ device_info by FW version fields
  mlxsw: core_linecards: Expose device FW version over device info
  selftests: mlxsw: Check device info on activated line card

 .../networking/devlink/devlink-linecard.rst   |   4 +
 Documentation/networking/devlink/mlxsw.rst    |  33 ++
 drivers/net/ethernet/mellanox/mlxsw/core.h    |   1 +
 .../ethernet/mellanox/mlxsw/core_linecards.c  | 237 +++++++++++++-
 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  87 ++++-
 include/net/devlink.h                         |  18 +-
 include/uapi/linux/devlink.h                  |   5 +
 net/core/devlink.c                            | 303 +++++++++++++++++-
 .../drivers/net/mlxsw/devlink_linecard.sh     |  61 ++++
 9 files changed, 739 insertions(+), 10 deletions(-)

-- 
2.33.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ