mbox series

[net-next,0/9] mlxsw: Preparations for line cards support

Message ID 20220413151733.2738867-1-idosch@nvidia.com (mailing list archive)
Headers show
Series mlxsw: Preparations for line cards support | expand

Message

Ido Schimmel April 13, 2022, 3:17 p.m. UTC
Currently, mlxsw registers thermal zones as well as hwmon entries for
objects such as transceiver modules and gearboxes. In upcoming modular
systems, these objects are no longer found on the main board (i.e., slot
0), but on plug-able line cards. This patchset prepares mlxsw for such
systems in terms of hwmon, thermal and cable access support.

Patches #1-#3 gradually prepare mlxsw for transceiver modules access
support for line cards by splitting some of the internal structures and
some APIs.

Patches #4-#5 gradually prepare mlxsw for hwmon support for line cards
by splitting some of the internal structures and augmenting them with a
slot index.

Patches #6-#7 do the same for thermal zones.

Patch #8 selects cooling device for binding to a thermal zone by exact
name match to prevent binding to non-relevant devices.

Patch #9 replaces internal define for thermal zone name length with a
common define.

Vadim Pasternak (9):
  mlxsw: core: Extend interfaces for cable info access with slot
    argument
  mlxsw: core: Extend port module data structures for line cards
  mlxsw: core: Move port module events enablement to a separate function
  mlxsw: core_hwmon: Extend internal structures to support multi hwmon
    objects
  mlxsw: core_hwmon: Introduce slot parameter in hwmon interfaces
  mlxsw: core_thermal: Extend internal structures to support multi
    thermal areas
  mlxsw: core_thermal: Add line card id prefix to line card thermal zone
    name
  mlxsw: core_thermal: Use exact name of cooling devices for binding
  mlxsw: core_thermal: Use common define for thermal zone name length

 .../net/ethernet/mellanox/mlxsw/core_env.c    | 473 ++++++++++++------
 .../net/ethernet/mellanox/mlxsw/core_env.h    |  43 +-
 .../net/ethernet/mellanox/mlxsw/core_hwmon.c  | 217 ++++----
 .../ethernet/mellanox/mlxsw/core_thermal.c    | 172 ++++---
 drivers/net/ethernet/mellanox/mlxsw/minimal.c |  24 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  21 +-
 .../mellanox/mlxsw/spectrum_ethtool.c         |  18 +-
 7 files changed, 611 insertions(+), 357 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org April 15, 2022, 10:20 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed, 13 Apr 2022 18:17:24 +0300 you wrote:
> Currently, mlxsw registers thermal zones as well as hwmon entries for
> objects such as transceiver modules and gearboxes. In upcoming modular
> systems, these objects are no longer found on the main board (i.e., slot
> 0), but on plug-able line cards. This patchset prepares mlxsw for such
> systems in terms of hwmon, thermal and cable access support.
> 
> Patches #1-#3 gradually prepare mlxsw for transceiver modules access
> support for line cards by splitting some of the internal structures and
> some APIs.
> 
> [...]

Here is the summary with links:
  - [net-next,1/9] mlxsw: core: Extend interfaces for cable info access with slot argument
    https://git.kernel.org/netdev/net-next/c/349454526f5f
  - [net-next,2/9] mlxsw: core: Extend port module data structures for line cards
    https://git.kernel.org/netdev/net-next/c/e5b6a5bac8cc
  - [net-next,3/9] mlxsw: core: Move port module events enablement to a separate function
    https://git.kernel.org/netdev/net-next/c/b244143a085e
  - [net-next,4/9] mlxsw: core_hwmon: Extend internal structures to support multi hwmon objects
    https://git.kernel.org/netdev/net-next/c/b890ad418e1f
  - [net-next,5/9] mlxsw: core_hwmon: Introduce slot parameter in hwmon interfaces
    https://git.kernel.org/netdev/net-next/c/fd27849dd6fd
  - [net-next,6/9] mlxsw: core_thermal: Extend internal structures to support multi thermal areas
    https://git.kernel.org/netdev/net-next/c/ef0df4fa324a
  - [net-next,7/9] mlxsw: core_thermal: Add line card id prefix to line card thermal zone name
    https://git.kernel.org/netdev/net-next/c/6d94449a7d7d
  - [net-next,8/9] mlxsw: core_thermal: Use exact name of cooling devices for binding
    https://git.kernel.org/netdev/net-next/c/739d56bc635e
  - [net-next,9/9] mlxsw: core_thermal: Use common define for thermal zone name length
    https://git.kernel.org/netdev/net-next/c/03978fb88b06

You are awesome, thank you!