Skip to contentSkip to conversation

mlx4: Fix IBoE reported rate

PATCH Superseded Eli Cohen 2 participants 3 messages Nov 11, 2010 1 message not in the archive

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Eli Cohen

author
#0 lore raw

PATCH 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 4 for the witdh and 1 for speed so it yields 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 ba871f8..f274c9c 100644
@@ -220,7 +220,7 @@ static int eth_link_query_port(struct ib_device *ibdev, u8 port,
 	enum ib_mtu tmp;
 
 	props->active_width	= IB_WIDTH_4X;
-	props->active_speed	= 4;
+	props->active_speed	= 1;
 	props->port_cap_flags	= IB_PORT_CM_SUP;
 	props->gid_tbl_len	= to_mdev(ibdev)->dev->caps.gid_table_len[port];
 	props->max_msg_sz	= to_mdev(ibdev)->dev->caps.max_msg_sz;
Signature · 6 lines
1.7.3.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
#1 lore raw
Quoted 3 lines · Eli Cohen

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

Why not 1x and 10Gbps? We've been using that for a while.

Jason
--
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

A message that is not in the archive (sent off-list or not yet received): 20101111162138.GA27175-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org

author
#3 lore raw
Quoted 4 lines · Jason Gunthorpe

On Thu, Nov 11, 2010 at 06:09:45PM +0200, Eli Cohen wrote:

Why not 1x and 10Gbps? We've been using that for a while.

I didn't think anyone cared about this. If there are no other objections I will send a new patch.
--
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