summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorEli Cohen <eli@dev.mellanox.co.il>2010-11-15 14:04:39 +0000
committerRoland Dreier <rolandd@cisco.com>2010-12-01 16:10:35 -0800
commit328266c561153a0c19084088d5dacd40632dc7ae (patch)
tree346402ed48bd2897499cd41341c91a7c501f0ed4 /drivers/infiniband
parent58d74bb1d9f79bb56b2ea51d2ca06a28fa0fce02 (diff)
downloadlinux-3.10-328266c561153a0c19084088d5dacd40632dc7ae.tar.gz
linux-3.10-328266c561153a0c19084088d5dacd40632dc7ae.tar.bz2
linux-3.10-328266c561153a0c19084088d5dacd40632dc7ae.zip
IB/mlx4: Fix IBoE reported link rate
The link rate is the product of the link speed in the link width. For Etherent ports the rate is 10G, so we use 1 for the width and 4 for speed to get the correct rate. Signed-off-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mlx4/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index bf3e20cd029..e165dd36e90 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -219,7 +219,7 @@ static int eth_link_query_port(struct ib_device *ibdev, u8 port,
struct net_device *ndev;
enum ib_mtu tmp;
- props->active_width = IB_WIDTH_4X;
+ props->active_width = IB_WIDTH_1X;
props->active_speed = 4;
props->port_cap_flags = IB_PORT_CM_SUP;
props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port];