Linux-RDMA Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH rdma-next] RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool
@ 2020-10-26 13:29 Leon Romanovsky
  2020-11-02 19:50 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Leon Romanovsky @ 2020-10-26 13:29 UTC (permalink / raw)
  To: Doug Ledford, Jason Gunthorpe
  Cc: Meir Lichtinger, Leon Romanovsky, linux-rdma

From: Meir Lichtinger <meirl@mellanox.com>

The IBTA specification has new speeds - HDR and NDR, supporting signaling
rate of 50Gb and 100Gb respectively. ethtool support of ipoib driver
translates IB speed to signaling rate. Added translation of HDR and NDR
IB types to rates of 50Gb and 100Gb ethernet speed.

Signed-off-by: Meir Lichtinger <meirl@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
---
 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
index 67a21fdf5367..823f6831e7ea 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
@@ -166,6 +166,10 @@ static inline int ib_speed_enum_to_int(int speed)
 		return SPEED_14000;
 	case IB_SPEED_EDR:
 		return SPEED_25000;
+	case IB_SPEED_HDR:
+		return SPEED_50000;
+	case IB_SPEED_NDR:
+		return SPEED_100000;
 	}
 
 	return SPEED_UNKNOWN;
-- 
2.26.2


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

* Re: [PATCH rdma-next] RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool
  2020-10-26 13:29 [PATCH rdma-next] RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool Leon Romanovsky
@ 2020-11-02 19:50 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2020-11-02 19:50 UTC (permalink / raw)
  To: Leon Romanovsky
  Cc: Doug Ledford, Meir Lichtinger, Leon Romanovsky, linux-rdma

On Mon, Oct 26, 2020 at 03:29:04PM +0200, Leon Romanovsky wrote:
> From: Meir Lichtinger <meirl@mellanox.com>
> 
> The IBTA specification has new speeds - HDR and NDR, supporting signaling
> rate of 50Gb and 100Gb respectively. ethtool support of ipoib driver
> translates IB speed to signaling rate. Added translation of HDR and NDR
> IB types to rates of 50Gb and 100Gb ethernet speed.
> 
> Signed-off-by: Meir Lichtinger <meirl@mellanox.com>
> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> ---
>  drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to for-next

Thanks,
Jason

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26 13:29 [PATCH rdma-next] RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool Leon Romanovsky
2020-11-02 19:50 ` Jason Gunthorpe

Linux-RDMA Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-rdma/0 linux-rdma/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-rdma linux-rdma/ https://lore.kernel.org/linux-rdma \
		linux-rdma@vger.kernel.org
	public-inbox-index linux-rdma

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-rdma


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git