Skip to contentSkip to conversation

RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool

PATCH Applied Leon Romanovsky 2 participants 2 messages Oct 26, 2020 – Nov 2, 2020 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool

From: Meir Lichtinger <[email protected]>

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.

---
 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c +4 -0
index 67a21fdf5367..823f6831e7ea 100644
@@ -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;
Signature · 1 line
2.26.2
maintainer Applied
#1 lore raw
Quoted 7 lines · Leon Romanovsky

From: Meir Lichtinger <[email protected]>

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.

Quoted 5 lines
---
 drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 4 ++++
 1 file changed, 4 insertions(+)

Applied to for-next

Thanks,
Jason