Skip to content

Commit b874155

Browse files
mikijoyjgunthorpe
authored andcommitted
IB/mlx5: Add HDR speed support to query port
Report HDR speed when HDR is supported in CapabilityMask2 and the actual speed is HDR. Signed-off-by: Michael Guralnik <michaelgur@mellanox.com> Reviewed-by: Majd Dibbiny <majd@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent 4106a75 commit b874155

File tree

1 file changed

+5
-0
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+5
-0
lines changed

drivers/infiniband/hw/mlx5/mad.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ int mlx5_query_mad_ifc_port(struct ib_device *ibdev, u8 port,
583583
case 2:
584584
props->active_speed = 32; /* EDR */
585585
break;
586+
case 4:
587+
if (props->port_cap_flags & IB_PORT_CAP_MASK2_SUP &&
588+
props->port_cap_flags2 & IB_PORT_LINK_SPEED_HDR_SUP)
589+
props->active_speed = IB_SPEED_HDR;
590+
break;
586591
}
587592
}
588593

0 commit comments

Comments
 (0)