* [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 related [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, other threads:[~2020-11-02 19:50 UTC | newest]
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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.