diff options
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 05ab3cb34cb3..4054a1bfabb5 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -698,9 +698,11 @@ static int eth_link_query_port(struct ib_device *ibdev, u8 port, | |||
698 | if (err) | 698 | if (err) |
699 | goto out; | 699 | goto out; |
700 | 700 | ||
701 | props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) ? | 701 | props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) || |
702 | IB_WIDTH_4X : IB_WIDTH_1X; | 702 | (((u8 *)mailbox->buf)[5] == 0x20 /*56Gb*/) ? |
703 | props->active_speed = IB_SPEED_QDR; | 703 | IB_WIDTH_4X : IB_WIDTH_1X; |
704 | props->active_speed = (((u8 *)mailbox->buf)[5] == 0x20 /*56Gb*/) ? | ||
705 | IB_SPEED_FDR : IB_SPEED_QDR; | ||
704 | props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_IP_BASED_GIDS; | 706 | props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_IP_BASED_GIDS; |
705 | props->gid_tbl_len = mdev->dev->caps.gid_table_len[port]; | 707 | props->gid_tbl_len = mdev->dev->caps.gid_table_len[port]; |
706 | props->max_msg_sz = mdev->dev->caps.max_msg_sz; | 708 | props->max_msg_sz = mdev->dev->caps.max_msg_sz; |