Skip to content

Commit aca0c31

Browse files
Alexei Lazarkuba-moo
authored andcommitted
net/mlx5e: Set local Xoff after FW update
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 <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Reviewed-by: Dragos Tatulea <[email protected]> Signed-off-by: Mark Bloch <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d243417 commit aca0c31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ int mlx5e_port_manual_buffer_config(struct mlx5e_priv *priv,
575575
if (err)
576576
return err;
577577
}
578-
priv->dcbx.xoff = xoff;
579578

580579
/* Apply the settings */
581580
if (update_buffer) {
@@ -584,6 +583,8 @@ int mlx5e_port_manual_buffer_config(struct mlx5e_priv *priv,
584583
return err;
585584
}
586585

586+
priv->dcbx.xoff = xoff;
587+
587588
if (update_prio2buffer)
588589
err = mlx5e_port_set_priority2buffer(priv->mdev, prio2buffer);
589590

0 commit comments

Comments
 (0)