net/mlx4: fix HW memory optimizations careless
authorMatan Azrad <matan@mellanox.com>
Thu, 2 Nov 2017 16:42:50 +0000 (16:42 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 Nov 2017 19:22:09 +0000 (20:22 +0100)
commitb68d92b45ca3b077e28f55a8592e00e06c2e9f20
tree2e69c1308e903c240361a0cf24063527d2d9939e
parentdae76a678cf8b36e1fefecc8c68f70613c275a02
net/mlx4: fix HW memory optimizations careless

Volatilize all Rx/Tx HW negotiation memories to be sure no compiler
optimization prevents either load or store commands.

Fixes: c3c977bbecbd ("net/mlx4: add Tx bypassing Verbs")
Fixes: 9f57340a8087 ("net/mlx4: restore Rx offloads")
Fixes: 6681b845034c ("net/mlx4: add Rx bypassing Verbs")
Fixes: 62e96ffb93ad ("net/mlx4: fix no Rx interrupts")

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4_prm.h
drivers/net/mlx4/mlx4_rxtx.c