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)
commite27535b9c6e071d461be33b75a33047c9bb4c0ce
tree85175ba81cbd99a2e797a298eace5f084223b4bd
parentc48c43e422c1404fd72c57d1d21a6f6d01e18900
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