]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa6b9cdc2705a417dcbb19a26eee0f7ba7a70c53
treefef1bb265517c0a5297f4d8cd6524ff9734ecc74
parent70f512df9e20b2e2e508dfb015b06a208812a0ce
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: aa858750f2ed ("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