net/mlx5_core: Add setting ATOMIC endian mode
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 14 Dec 2015 14:34:09 +0000 (16:34 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Dec 2015 05:17:31 +0000 (00:17 -0500)
commitf91e6d8941bf450f7842dfc1ed80e948aaa65e8c
tree8c3ffa8c01b289c87cfefc18856a95c4121584b5
parent67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3
net/mlx5_core: Add setting ATOMIC endian mode

HW is capable of 2 requestor endianness modes for standard 8 Bytes
atomic: BE (0x0) and host endianness (0x1). Read the supported modes
from hca atomic capabilities and configure HW to host endianness mode if
supported.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/mlx5_ifc.h