]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Track per-module port status
authorIdo Schimmel <idosch@nvidia.com>
Wed, 15 Sep 2021 10:13:11 +0000 (13:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 15:17:16 +0000 (16:17 +0100)
commit53a99f4f995ce13d01793a5bc9949595e17f6581
treefce4e64246ab0763619a7a7d1bf25a094fa67437
parentd01f06290b8ff57788171cdbb672e1024eef8b00
mlxsw: Track per-module port status

In the common port module core, track the number of logical ports that
are mapped to the port module and the number of logical ports using it
that are administratively up.

This will be used by later patches to potentially veto and control
certain operations on the module, such as reset and setting its power
mode.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/core_env.h
drivers/net/ethernet/mellanox/mlxsw/minimal.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.c