Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH net] net/mlx5: IFC, enlarge active_port field to support 8 port LAG
@ 2026-11-12 18:29 Tariq Toukan
  2026-11-13 15:27 ` sashiko-bot
  2026-11-13 15:27 ` netdev-bot+sinfo
  0 siblings, 2 replies; 3+ messages in thread
From: Tariq Toukan @ 2026-11-12 18:29 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	netdev, Paolo Abeni
  Cc: Akiva Goldberger, Gal Pressman, Leon Romanovsky, open list,
	linux-rdma, Mark Bloch, Saeed Mahameed, Shay Drory, Simon Horman,
	Tariq Toukan

From: Shay Drory <shayd@nvidia.com>

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")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Akiva Goldberger <agoldberger@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
 include/linux/mlx5/mlx5_ifc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h
index 697fc9387b73..37b6e47c9091 100644
--- a/include/linux/mlx5/mlx5_ifc.h
+++ b/include/linux/mlx5/mlx5_ifc.h
@@ -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
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-13 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 18:29 [PATCH net] net/mlx5: IFC, enlarge active_port field to support 8 port LAG Tariq Toukan
2026-11-13 15:27 ` sashiko-bot
2026-11-13 15:27 ` netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox