IB/mlx4: Fix IBoE reported link rate
authorEli Cohen <eli@dev.mellanox.co.il>
Mon, 15 Nov 2010 14:04:39 +0000 (14:04 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 2 Dec 2010 00:10:35 +0000 (16:10 -0800)
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>
drivers/infiniband/hw/mlx4/main.c

index bf3e20cd029859f2beb23e962fa2640e30faf44c..e165dd36e908d848a0044992164ddfff0411847c 100644 (file)
@@ -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];