]> 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)
commit896f399be0780549703d23fabe6e6bf40c661475
treefce4e64246ab0763619a7a7d1bf25a094fa67437
parent196bff2927a753b7472b2c48f93bed2c17f93a47
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