]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1776b3e66a887f4b81bcde129e4eb9e29562bee
tree71e3740c97fc66f8a001c6c6c20bbfa470d6ad49
parentbd864deca99093664175534de4e9fc6a78eba3a8
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