IB/mlx5: Fix decision on using MAD_IFC
authorEli Cohen <eli@mellanox.com>
Fri, 11 Mar 2016 20:58:35 +0000 (22:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Mar 2016 20:34:06 +0000 (16:34 -0400)
commitd603c809ef91fa2d211bde5e95be417847410379
tree79d5810530a6f26894880ea120e2a92491835e59
parentcc8e27cc97318471b7e707932d5b93b0d5f70830
IB/mlx5: Fix decision on using MAD_IFC

Fix the condition that dictates when MAD_IFC should be used. According
to firmware specifications, MAD_IFC commands must be used only if the
ib_virt capability is off.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c