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)
commit328266c561153a0c19084088d5dacd40632dc7ae
tree346402ed48bd2897499cd41341c91a7c501f0ed4
parent58d74bb1d9f79bb56b2ea51d2ca06a28fa0fce02
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>
drivers/infiniband/hw/mlx4/main.c