]> 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)
commit53de84dc56b51c31b9aed9799962aeccb9aa9152
treefce4e64246ab0763619a7a7d1bf25a094fa67437
parent870a84edb561ab267191f195a996cc47b0013a5c
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