]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Keep maximum MTU around
authorPetr Machata <petrm@nvidia.com>
Sun, 13 Sep 2020 15:46:07 +0000 (18:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Sep 2020 21:37:30 +0000 (14:37 -0700)
commitbd864deca99093664175534de4e9fc6a78eba3a8
tree0db4a62c015bc1c7cee9a2cdc8433a5527aab988
parentdbb8530ab3732131644a9a5d75ac0dce01fd8171
mlxsw: spectrum: Keep maximum MTU around

The maximum port MTU depends on port type. On Spectrum, mlxsw configures
all ports as Ethernet ports, and the maximum MTU therefore never changes.
Besides checking MTU configuration, maximum MTU will also 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