From: Amit Cohen Date: Thu, 13 Jun 2024 14:07:54 +0000 (+0200) Subject: mlxsw: port: Edit maximum MTU value X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cae7fd47dfe15e54710e3e550340876382a6db19;p=linux.git mlxsw: port: Edit maximum MTU value Currently mlxsw driver supports up to 10000 bytes for maximum MTU, this value is not accurate, we can support up to 10K bytes. Change the value to the maximum supported MTU by firmware. Signed-off-by: Amit Cohen Reviewed-by: Ido Schimmel Signed-off-by: Petr Machata Link: https://lore.kernel.org/r/666f51681234aeef09d771833ccb6e94bd323c88.1718275854.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/port.h b/drivers/net/ethernet/mellanox/mlxsw/port.h index ac4d4ea51597..aa309615eff3 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/port.h +++ b/drivers/net/ethernet/mellanox/mlxsw/port.h @@ -6,7 +6,7 @@ #include -#define MLXSW_PORT_MAX_MTU 10000 +#define MLXSW_PORT_MAX_MTU (10 * 1024) #define MLXSW_PORT_DEFAULT_VID 1