mlxsw: core: Add API for QSFP module temperature thresholds reading
Add new API to read QSFP module's temperature thresholds - warning and critical. New internal API reads the temperature thresholds from the modules, which are equipped with the thermal sensor. These thresholds will be exposed via hwmon subsystem. Signed-off-by:Vadim Pasternak <vadimp@mellanox.com> Reviewed-by:
Jiri Pirko <jiri@mellanox.com> Signed-off-by:
Ido Schimmel <idosch@mellanox.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/mellanox/mlxsw/Makefile 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlxsw/Makefile
- drivers/net/ethernet/mellanox/mlxsw/core_env.c 117 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlxsw/core_env.c
- drivers/net/ethernet/mellanox/mlxsw/core_env.h 10 additions, 0 deletionsdrivers/net/ethernet/mellanox/mlxsw/core_env.h
Please register or sign in to comment