projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
254764e
)
net/mlx4_core: A write memory barrier is sufficient in EQ ci update
author
Tariq Toukan
<
[email protected]
>
Tue, 22 Jan 2019 13:25:50 +0000
(15:25 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 25 Jan 2019 05:54:13 +0000
(21:54 -0800)
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]
>
drivers/net/ethernet/mellanox/mlx4/eq.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/eq.c
b/drivers/net/ethernet/mellanox/mlx4/eq.c
index 2f42010238369738b7615feafcf6668e52a8119c..a5be27772b8ed47951704ec881eb7e267013bcf1 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/eq.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/eq.c
@@
-100,7
+100,7
@@
static void eq_set_ci(struct mlx4_eq *eq, int req_not)
req_not << 31),
eq->doorbell);
/* We still want ordering, just not swabbing, so add a barrier */
- mb();
+
w
mb();
}
static struct mlx4_eqe *get_eqe(struct mlx4_eq *eq, u32 entry, u8 eqe_factor,