Skip to content

Commit 8472b9d

Browse files
Alexei Lazargregkh
authored andcommitted
net/mlx5e: Set local Xoff after FW update
[ Upstream commit aca0c31 ] The local Xoff value is being set before the firmware (FW) update. In case of a failure where the FW is not updated with the new value, there is no fallback to the previous value. Update the local Xoff value after the FW has been successfully set. Fixes: 0696d60 ("net/mlx5e: Receive buffer configuration") Signed-off-by: Alexei Lazar <alazar@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Mark Bloch <mbloch@nvidia.com> Link: https://patch.msgid.link/20250825143435.598584-12-mbloch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 72a2d4b commit 8472b9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ int mlx5e_port_manual_buffer_config(struct mlx5e_priv *priv,
341341
if (err)
342342
return err;
343343
}
344-
priv->dcbx.xoff = xoff;
345344

346345
/* Apply the settings */
347346
if (update_buffer) {
@@ -350,6 +349,8 @@ int mlx5e_port_manual_buffer_config(struct mlx5e_priv *priv,
350349
return err;
351350
}
352351

352+
priv->dcbx.xoff = xoff;
353+
353354
if (update_prio2buffer)
354355
err = mlx5e_port_set_priority2buffer(priv->mdev, prio2buffer);
355356

0 commit comments

Comments
 (0)