]> 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)
commit1db99571d5ba7a32ce48c7b9c58efb59a0f8db04
treefef1bb265517c0a5297f4d8cd6524ff9734ecc74
parentd21c1ece3f2b5a41c84231c4621c9b6f6868d61f
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: bda9bf514909 ("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