]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix memory ordering of VLAN insertion control bits
authorEli Cohen <eli@dev.mellanox.co.il>
Wed, 17 Nov 2010 13:39:43 +0000 (13:39 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 1 Dec 2010 19:08:54 +0000 (11:08 -0800)
commita2b6630892f66570b563e3523960cae8d3fc0cc8
tree85175ba81cbd99a2e797a298eace5f084223b4bd
parentb9e395e4ec273da364a6446127ff0c452178e8a3
IB/mlx4: Fix memory ordering of VLAN insertion control bits

We must fully update the control segment before marking it as valid,
so that hardware doesn't start executing it before we're ready.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
[ Move VLAN control bit setting to before wmb().  - Roland ]

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c