Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/mlx5e: Add 1600Gbps link modes

Introduce support for a 1600Gbps link mode, utilizing 8 lanes at 200Gbps
per lane.

Signed-off-by: Yael Chemla <ychemla@nvidia.com>
Reviewed-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/1763585297-1243980-3-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Yael Chemla and committed by
Jakub Kicinski
be3a435d 491c5dc9

+6
+5
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
··· 261 261 ETHTOOL_LINK_MODE_800000baseDR4_2_Full_BIT, 262 262 ETHTOOL_LINK_MODE_800000baseSR4_Full_BIT, 263 263 ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT); 264 + MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_1600TAUI_8_1600TBASE_CR8_KR8, ext, 265 + ETHTOOL_LINK_MODE_1600000baseCR8_Full_BIT, 266 + ETHTOOL_LINK_MODE_1600000baseKR8_Full_BIT, 267 + ETHTOOL_LINK_MODE_1600000baseDR8_Full_BIT, 268 + ETHTOOL_LINK_MODE_1600000baseDR8_2_Full_BIT); 264 269 } 265 270 266 271 static void mlx5e_ethtool_get_speed_arr(bool ext,
+1
drivers/net/ethernet/mellanox/mlx5/core/port.c
··· 1108 1108 [MLX5E_200GAUI_1_200GBASE_CR1_KR1] = {.speed = 200000, .lanes = 1}, 1109 1109 [MLX5E_400GAUI_2_400GBASE_CR2_KR2] = {.speed = 400000, .lanes = 2}, 1110 1110 [MLX5E_800GAUI_4_800GBASE_CR4_KR4] = {.speed = 800000, .lanes = 4}, 1111 + [MLX5E_1600TAUI_8_1600TBASE_CR8_KR8] = {.speed = 1600000, .lanes = 8}, 1111 1112 }; 1112 1113 1113 1114 int mlx5_port_query_eth_proto(struct mlx5_core_dev *dev, u8 port, bool ext,