linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mlx4: Fix IBoE reported rate
@ 2010-11-11 16:09 Eli Cohen
  2010-11-11 16:21 ` Jason Gunthorpe
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Cohen @ 2010-11-11 16:09 UTC (permalink / raw)
  To: Roland Dreier; +Cc: RDMA list

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.

Signed-off-by: Eli Cohen <eli-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
---
 drivers/infiniband/hw/mlx4/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index ba871f8..f274c9c 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -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;
-- 
1.7.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mlx4: Fix IBoE reported rate
  2010-11-11 16:09 [PATCH] mlx4: Fix IBoE reported rate Eli Cohen
@ 2010-11-11 16:21 ` Jason Gunthorpe
       [not found]   ` <20101111162138.GA27175-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Gunthorpe @ 2010-11-11 16:21 UTC (permalink / raw)
  To: Eli Cohen; +Cc: Roland Dreier, RDMA list

On Thu, Nov 11, 2010 at 06:09:45PM +0200, Eli Cohen wrote:
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mlx4: Fix IBoE reported rate
       [not found]   ` <20101111162138.GA27175-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2010-11-11 16:55     ` Eli Cohen
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Cohen @ 2010-11-11 16:55 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Roland Dreier, RDMA list

On Thu, Nov 11, 2010 at 09:21:38AM -0700, Jason Gunthorpe wrote:
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-11 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11 16:09 [PATCH] mlx4: Fix IBoE reported rate Eli Cohen
2010-11-11 16:21 ` Jason Gunthorpe
     [not found]   ` <20101111162138.GA27175-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-11-11 16:55     ` Eli Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).