Skip to content

Commit

Permalink
net/mlx5e: Fix the calling of update_buffer_lossy() API
Browse files Browse the repository at this point in the history
The arguments of update_buffer_lossy() is in a wrong order. Fix it.

Fixes: 88b3d5c ("net/mlx5e: Fix port buffers cell size value")
Signed-off-by: Mark Zhang <[email protected]>
Reviewed-by: Maor Gottlieb <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
  • Loading branch information
MarkZhang81 authored and Saeed Mahameed committed May 4, 2022
1 parent ada09af commit c4d963a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ int mlx5e_port_manual_buffer_config(struct mlx5e_priv *priv,
if (err)
return err;

err = update_buffer_lossy(max_mtu, curr_pfc_en, prio2buffer, port_buff_cell_sz,
xoff, &port_buffer, &update_buffer);
err = update_buffer_lossy(max_mtu, curr_pfc_en, prio2buffer, xoff,
port_buff_cell_sz, &port_buffer, &update_buffer);
if (err)
return err;
}
Expand Down

0 comments on commit c4d963a

Please sign in to comment.