Skip to contentSkip to conversation

net/mlx5: Fix 1600G link mode enum naming

PATCH Applied Tariq Toukan 6 participants 8 messages Feb 4 – Feb 7

Subsystems (6)
lore
Share & tools
lore

Tariq Toukan

author maintainer
#0 lore raw

PATCH 1/1 net/mlx5: Fix 1600G link mode enum naming

From: Yael Chemla <[email protected]>

Rename TAUI/TBASE to GAUI/GBASE in 1600G link mode identifier and its usage in ethtool and link-info tables.

---
 drivers/infiniband/hw/mlx5/main.c                    | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/port.c       | 2 +-
 include/linux/mlx5/port.h                            | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/infiniband/hw/mlx5/main.c +1 -1
index 40284bbb45d6..947faacd75bb 100644
@@ -511,7 +511,7 @@ static int translate_eth_ext_proto_oper(u32 eth_proto_oper, u16 *active_speed,
 		*active_width = IB_WIDTH_4X;
 		*active_speed = IB_SPEED_XDR;
 		break;
-	case MLX5E_PROT_MASK(MLX5E_1600TAUI_8_1600TBASE_CR8_KR8):
+	case MLX5E_PROT_MASK(MLX5E_1600GAUI_8_1600GBASE_CR8_KR8):
 		*active_width = IB_WIDTH_8X;
 		*active_speed = IB_SPEED_XDR;
 		break;
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +1 -1
index d3fef1e7e2f7..4a8dc85d5924 100644
@@ -261,7 +261,7 @@ void mlx5e_build_ptys2ethtool_map(void)
 				       ETHTOOL_LINK_MODE_800000baseDR4_2_Full_BIT,
 				       ETHTOOL_LINK_MODE_800000baseSR4_Full_BIT,
 				       ETHTOOL_LINK_MODE_800000baseVR4_Full_BIT);
-	MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_1600TAUI_8_1600TBASE_CR8_KR8, ext,
+	MLX5_BUILD_PTYS2ETHTOOL_CONFIG(MLX5E_1600GAUI_8_1600GBASE_CR8_KR8, ext,
 				       ETHTOOL_LINK_MODE_1600000baseCR8_Full_BIT,
 				       ETHTOOL_LINK_MODE_1600000baseKR8_Full_BIT,
 				       ETHTOOL_LINK_MODE_1600000baseDR8_Full_BIT,
drivers/net/ethernet/mellanox/mlx5/core/port.c +1 -1
index e8a0884ea477..181714d37776 100644
@@ -1111,7 +1111,7 @@ mlx5e_ext_link_info[MLX5E_EXT_LINK_MODES_NUMBER] = {
 	[MLX5E_200GAUI_1_200GBASE_CR1_KR1]	= {.speed = 200000, .lanes = 1},
 	[MLX5E_400GAUI_2_400GBASE_CR2_KR2]	= {.speed = 400000, .lanes = 2},
 	[MLX5E_800GAUI_4_800GBASE_CR4_KR4]	= {.speed = 800000, .lanes = 4},
-	[MLX5E_1600TAUI_8_1600TBASE_CR8_KR8]	= {.speed = 1600000, .lanes = 8},
+	[MLX5E_1600GAUI_8_1600GBASE_CR8_KR8]	= {.speed = 1600000, .lanes = 8},
 };
 
 int mlx5_port_query_eth_proto(struct mlx5_core_dev *dev, u8 port, bool ext,
include/linux/mlx5/port.h +1 -1
index 1df9d9a57bbc..12d366b12e2e 100644
@@ -112,7 +112,7 @@ enum mlx5e_ext_link_mode {
 	MLX5E_400GAUI_2_400GBASE_CR2_KR2	= 17,
 	MLX5E_800GAUI_8_800GBASE_CR8_KR8	= 19,
 	MLX5E_800GAUI_4_800GBASE_CR4_KR4	= 20,
-	MLX5E_1600TAUI_8_1600TBASE_CR8_KR8	= 23,
+	MLX5E_1600GAUI_8_1600GBASE_CR8_KR8	= 23,
 	MLX5E_EXT_LINK_MODES_NUMBER,
 };
 

base-commit: 9a9424c756feee9ee6e717405a9d6fa7bacdef08

Signature · 1 line
2.44.0
Reviewed-by on v1 1/1
#2 lore raw
In reply to Tariq Toukan
Quoted 10 lines · Tariq Toukan

From: Yael Chemla <[email protected]>

Rename TAUI/TBASE to GAUI/GBASE in 1600G link mode identifier and its usage in ethtool and link-info tables.

---

Checkpatch is complaining:

------

scripts/checkpatch.pl --strict 20260204_tariqt_net_mlx5_fix_1600g_link_mode_enum_naming.mbx
WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report #13:

total: 0 errors, 1 warnings, 0 checks, 32 lines checked

------

But I raised this off-list, so that's fine :)

Thanks,
Dawid

maintainer
#3 lore raw
Quoted 1 line · On Thu, 5 Feb 2026 13:42:16 +0100 Dawid Osuchowski wrote:

WARNING: Reported-by: should be immediately followed by Closes: with a URL to the report

FTR netdev ignores this warning.

Reviewed-by on v1 1/1
#4 lore raw
In reply to Tariq Toukan
Quoted 9 lines · Tariq Toukan

From: Yael Chemla <[email protected]>

Rename TAUI/TBASE to GAUI/GBASE in 1600G link mode identifier and its usage in ethtool and link-info tables.

Quoted 7 lines
---
 drivers/infiniband/hw/mlx5/main.c                    | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 +-
 drivers/net/ethernet/mellanox/mlx5/core/port.c       | 2 +-
 include/linux/mlx5/port.h                            | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Thanks,

#5 lore raw
In reply to Tariq Toukan
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Wed, 4 Feb 2026 21:43:24 +0200 you wrote:

From: Yael Chemla <[email protected]>

Rename TAUI/TBASE to GAUI/GBASE in 1600G link mode identifier and its usage in ethtool and link-info tables.

[...]

Here is the summary with links:
- [net-next] net/mlx5: Fix 1600G link mode enum naming

    https://git.kernel.org/netdev/net-next/c/215b53099b60

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#6 lore raw
Quoted 16 lines · On 2026-02-06 3:50 AM, [email protected] wrote:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Wed, 4 Feb 2026 21:43:24 +0200 you wrote:

From: Yael Chemla <[email protected]>

Rename TAUI/TBASE to GAUI/GBASE in 1600G link mode identifier and its usage in ethtool and link-info tables.

Quoted 7 lines
Quoted 1 line

[...]

Here is the summary with links:
- [net-next] net/mlx5: Fix 1600G link mode enum naming

     https://git.kernel.org/netdev/net-next/c/215b53099b60

You are awesome, thank you!

Hey Kuba,

I noticed that in the commit message on the net-next tree the following tags are duplicated:

Is that by design or did the bot break something? This is purely out of my curiosity.

Best regards,
Dawid

maintainer Reviewed-by Shahar Shitrit Reviewed-by Jacob Keller Reviewed-by Dawid Osuchowski Reviewed-by Leon Romanovsky
#7 lore raw
Quoted 8 lines · On Fri, 6 Feb 2026 11:48:58 +0100 Dawid Osuchowski wrote:
Quoted 5 lines

Here is the summary with links:
- [net-next] net/mlx5: Fix 1600G link mode enum naming

     https://git.kernel.org/netdev/net-next/c/215b53099b60

You are awesome, thank you!

Hey Kuba,

Quoted 8 lines

I noticed that in the commit message on the net-next tree the following tags are duplicated:

Is that by design or did the bot break something? This is purely out of my curiosity.

Oh damn :( This is what patchwork produces:

I fixed it up manually but clearly not well enough.

Patchwork needs so much work..