]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mlxsw: port: Edit maximum MTU value
authorAmit Cohen <amcohen@nvidia.com>
Thu, 13 Jun 2024 14:07:54 +0000 (16:07 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Jun 2024 02:30:34 +0000 (19:30 -0700)
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 <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/666f51681234aeef09d771833ccb6e94bd323c88.1718275854.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/port.h

index ac4d4ea5159787018ff167ac83d94bae6076ac31..aa309615eff3f6e6b0db9f6cd1476fdb0e4f9e3f 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <linux/types.h>
 
-#define MLXSW_PORT_MAX_MTU             10000
+#define MLXSW_PORT_MAX_MTU             (10 * 1024)
 
 #define MLXSW_PORT_DEFAULT_VID         1