Skip to content

Commit d603c80

Browse files
Eli Cohendledford
Eli Cohen
authored andcommitted
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>
1 parent cc8e27c commit d603c80

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mlx5/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ __be16 mlx5_get_roce_udp_sport(struct mlx5_ib_dev *dev, u8 port_num,
283283

284284
static int mlx5_use_mad_ifc(struct mlx5_ib_dev *dev)
285285
{
286-
return !dev->mdev->issi;
286+
return !MLX5_CAP_GEN(dev->mdev, ib_virt);
287287
}
288288

289289
enum {

0 commit comments

Comments
 (0)