IB/mlx5: Fix pkey_index length in the QP path record
authorNoa Osherovich <noaos@mellanox.com>
Sat, 4 Jun 2016 12:15:36 +0000 (15:15 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 7 Jun 2016 14:03:50 +0000 (10:03 -0400)
commitd3ae2bdeba9bad8cb95301451aeaf03ce31e82f0
tree76022086bc87b3e3d224275c0b7b0b6a60f6f1f6
parent3c4c37746c919c983e439ac6a7328cd2d48c10ed
IB/mlx5: Fix pkey_index length in the QP path record

Pkey index fields in the QP context path record are extended to 16
bits, as required by IB spec (version 1.3).
This change affects all QP commands which include path records.

To enable this change, moved the free adaptive routing flag bit
(free_ar) to the most significant byte of the QP path record.

Fixes: e126ba97dba9e ('mlx5: Add driver for Mellanox Connect-IB ...')
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/qp.c
include/linux/mlx5/qp.h