Skip to content

Commit

Permalink
net/mlx5: A write memory barrier is sufficient in EQ ci update
Browse files Browse the repository at this point in the history
Soften the memory barrier call of mb() by a sufficient wmb() in the
consumer index update of the event queues.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
  • Loading branch information
Tariq Toukan authored and Saeed Mahameed committed Apr 5, 2019
1 parent 27c11b6 commit 98df6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/eq.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void mlx5_eq_update_ci(struct mlx5_eq *eq, u32 cc, bool arm)

__raw_writel((__force u32)cpu_to_be32(val), addr);
/* We still want ordering, just not swabbing, so add a barrier */
mb();
wmb();
}
EXPORT_SYMBOL(mlx5_eq_update_ci);

Expand Down

0 comments on commit 98df6d5

Please sign in to comment.