]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx5: Skip disabled vports when setting max TX speed
authorOr Har-Toov <ohartoov@nvidia.com>
Wed, 13 May 2026 06:36:40 +0000 (09:36 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 May 2026 01:35:36 +0000 (18:35 -0700)
commitc6df9a65cbb0fe7808a4b2872095f4c849b3196a
tree6e10b4bd847680c206210d5065bff9fb53339262
parent8d0a5af8b1ba598e7340761729801624e7a9330e
net/mlx5: Skip disabled vports when setting max TX speed

When setting vports max TX speed during LAG activation or bond state
changes, the code iterates over all eswitch vports. However, some
vports may not be enabled yet.

Skip vports that are not enabled to avoid sending FW commands for
uninitialized vports. Save the LAG aggregated speed in the vport
struct so it can be applied when the vport is enabled later.

Fixes: 50f1d188c580 ("net/mlx5: Propagate LAG effective max_tx_speed to vports")
Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260513063640.334132-1-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c