Skip to contentSkip to conversation

mlx4: Fix IBoE reported rate

PATCH In review Eli Cohen 2 participants 2 messages Nov 15, 2010 – Dec 2, 2010

Subsystems (2)
lore
Share & tools
lore

Eli Cohen

author
#0 lore raw

PATCH v2 1/1 mlx4: Fix IBoE reported rate

The link rate is the multiplication of the link speed in the link width. For Etherent ports the rate is 10G so we use 1 for the witdh and 4 for speed so it yields the correct rate.

---
Changes: Use 1X for width and 4 for speed.
It should be noted that in the future (for other devices), active_width and active_speed may have other values to relflect the correct rate.

 drivers/infiniband/hw/mlx4/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/mlx4/main.c +1 -1
index f200b96..02a9034 100644
@@ -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];
Signature · 6 lines
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html