Skip to content

Commit 5e5b9f6

Browse files
Tariq Toukandavem330
authored andcommitted
net/mlx4_core: A write memory barrier is sufficient in EQ ci update
Soften the memory barrier call of mb() by a sufficient wmb() in the consumer index update of the event queues. Suggested-by: Eric Dumazet <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 254764e commit 5e5b9f6

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx4/eq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static void eq_set_ci(struct mlx4_eq *eq, int req_not)
100100
req_not << 31),
101101
eq->doorbell);
102102
/* We still want ordering, just not swabbing, so add a barrier */
103-
mb();
103+
wmb();
104104
}
105105

106106
static struct mlx4_eqe *get_eqe(struct mlx4_eq *eq, u32 entry, u8 eqe_factor,

0 commit comments

Comments
 (0)