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: Vladimir Sokolovsky <v...@mellanox.co.il> Signed-off-by: Marcel Apfelbaum <marc...@dev.mellanox.co.il> Reviewed-by: Hal Rosenstock <h...@mellanox.com> --- drivers/infiniband/hw/mlx4/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/drivers/infiniband/hw/mlx4/main.c =================================================================== --- a/drivers/infiniband/hw/mlx4/main.c 2011-09-14 13:49:58.000000000 +0300 +++ b/drivers/infiniband/hw/mlx4/main.c 2011-09-14 13:50:52.408510900 +0300 @@ -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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html