ib/mlx4: get extended active speed from port info
Subsystems (2)
RFC PATCH 3/4 ib/mlx4: get extended active speed from port info
mlx4_ib: Add extended link speeds support
This patch implements IB spec extension of the PortInfo attribute:
Component : LinkSpeedExtActive
Used By : (All X's except base SP0)
Access : RO
Length : 4
Offset : 496
Description: If PortInfo:CapabilityMask.IsExtendedSpeedsSupported
(according to IBTA RefID 4720), currently active extended link speed, indicated as follows:
0: No extended speed active
1: 14.0625 Gbps (FDR)
2: 25.78125 Gbps (EDR)
3-15: Reserved
Signed-off-by Marcel Apfelbaum <[email protected]>
--- drivers/infiniband/hw/mlx4/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx4/main.c +1 -1
@@ -202,7 +202,7 @@ static int ib_link_query_port(struct ib_ props->subnet_timeout = out_mad->data[51 ] &0x1f ; props->max_vl_num = out_mad->data[37 ] >>4 ; props->init_type_reply = out_mad->data[41 ] >>4 ; - + props->ext_active_speed = out_mad->data[62 ] >>4 ;return 0 ; }
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html