IB/mlx5: Enable MAD_IFC commands for IB ports only
authorNoa Osherovich <noaos@mellanox.com>
Mon, 12 Sep 2016 16:16:23 +0000 (19:16 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 16 Sep 2016 18:14:08 +0000 (14:14 -0400)
commit7fae6655a0c897875bd34501ec092232b526d3e4
treefef1bb265517c0a5297f4d8cd6524ff9734ecc74
parent69d269d38910e697e461ec5677368f57d2046cbe
IB/mlx5: Enable MAD_IFC commands for IB ports only

MAD_IFC command is supported only for physical functions (PF)
and when physical port is IB. The proposed fix enforces it.

Fixes: d603c809ef91 ("IB/mlx5: Fix decision on using MAD_IFC")
Reported-by: David Chang <dchang@suse.com>
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c