Skip to contentSkip to conversation

net/mlx5: IFC, enlarge active_port field to support 8 port LAG

PATCH Applied Tariq Toukan 5 participants 5 messages Nov 13 – Nov 17

Subsystems (5)
lore
Share & tools
lore

Tariq Toukan

author maintainer
#0 lore raw

PATCH 1/1 net/mlx5: IFC, enlarge active_port field to support 8 port LAG

From: Shay Drory <[email protected]>

active_port is a bitmask with a bit per LAG port. The cited commit enabled 8 port LAG, but active_port remained 4 bits wide.

Enlarge active_port to 8 bits, as defined in the PRM.

Fixes e0e6adfe8c20 ("net/mlx5: Enable 8 ports LAG")
---
 include/linux/mlx5/mlx5_ifc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/mlx5/mlx5_ifc.h +2 -2
index 697fc9387b73..37b6e47c9091 100644
@@ -12453,8 +12453,8 @@ struct mlx5_ifc_lagc_bits {
 	u8         reserved_at_18[0x5];
 	u8         lag_state[0x3];
 
-	u8         reserved_at_20[0xc];
-	u8         active_port[0x4];
+	u8         reserved_at_20[0x8];
+	u8         active_port[0x8];
 	u8         reserved_at_30[0x4];
 	u8         tx_remap_affinity_2[0x4];
 	u8         reserved_at_38[0x4];

base-commit: b71c101bbb9814d163c00234d43c41f0a17907d4

Signature · 1 line
2.44.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 5 lines

From: Shay Drory <[email protected]>

active_port is a bitmask with a bit per LAG port. The cited commit enabled 8 port LAG, but active_port remained 4 bits wide.

Quoted 7 lines

Enlarge active_port to 8 bits, as defined in the PRM.

Fixes e0e6adfe8c20 ("net/mlx5: Enable 8 ports LAG")

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#2 lore raw
In reply to Tariq Toukan
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:

Hi!

This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:

- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.

- Whether the issue was actually triggered, or is only theoretical (e.g. found by LLM and not proven at runtime). If it was triggered please include the symptoms, like the stack trace or kernel messages.

Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.

The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.

#3 lore raw
Quoted 13 lines · On 13/11/2026 17:27, [email protected] wrote:

Hi!

This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:

- How the issue was discovered, e.g. hit in production, hit during development, syzbot report, manual code inspection, LLM or static analysis tool scan.

- Whether the issue was actually triggered, or is only theoretical (e.g. found by LLM and not proven at runtime). If it was triggered please include the symptoms, like the stack trace or kernel messages.

Quoted 8 lines

Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account. If the series needs another revision for other reasons, please include the information in the commit messages then.

The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.

Hi,

It was found by the netdev Sashiko AI review of an earlier mlx5 patch series, and confirmed against the PRM.

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

Hello:

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

Quoted 8 lines · On Thu, 12 Nov 2026 20:29:40 +0200 you wrote:

From: Shay Drory <[email protected]>

active_port is a bitmask with a bit per LAG port. The cited commit enabled 8 port LAG, but active_port remained 4 bits wide.

Enlarge active_port to 8 bits, as defined in the PRM.

[...]

Here is the summary with links:
- [net] net/mlx5: IFC, enlarge active_port field to support 8 port LAG

    https://git.kernel.org/netdev/net/c/a2239d5dbbda

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html