]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: Fix wrong endianess access with QP context flags
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 10 Sep 2014 14:15:11 +0000 (17:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 22:22:43 +0000 (15:22 -0700)
commit0627c7e4c36afc5331ac1de385b01cefe0ec5275
tree1116a38699e9932c513c27d55d685b17887d152c
parentf53beb8b7ed8a8f414dd308904d4f439458b13c5
mlx4: Fix wrong endianess access with QP context flags

We wrongly tested QP context bits without BE conversion
as was spotted by sparse...

drivers/infiniband/hw/mlx4/qp.c:1685:38: sparse: restricted __be32 degrades to integer

Fix that!

Fixes: 81d729d ('mlx4: Set user-space raw Ethernet QPs to properly handle VXLAN traffic')
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/qp.c