mlxsw: spectrum: Keep maximum speed around
authorPetr Machata <petrm@nvidia.com>
Sun, 13 Sep 2020 15:46:08 +0000 (18:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 21:37:30 +0000 (14:37 -0700)
commit3232e8c66e72585073fb01fefc92f9d5b0e71e0c
tree71e3740c97fc66f8a001c6c6c20bbfa470d6ad49
parent2ecf87ae6cce1fe718b663a034ee9de0b028b7e2
mlxsw: spectrum: Keep maximum speed around

The maximum port speed depends on link modes supported by the port, and for
Ethernet ports is constant. The maximum speed will be handy when setting
SBIB, the internal buffer used for traffic mirroring. Therefore, keep it in
struct mlxsw_sp_port for easy access.

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