Skip to contentSkip to conversation

RDMA/efa: Report 800 and 1600 Gbps link speed

PATCH Applied Tom Sela 2 participants 2 messages Jun 8 – Jun 9

Subsystems (2)
lore
Share & tools
lore

Tom Sela

author
#0 lore raw

PATCH 1/1 RDMA/efa: Report 800 and 1600 Gbps link speed

Add support for reporting 800 Gbps as 8X NDR and 1600 Gbps as 8X XDR link speeds.

---
 drivers/infiniband/hw/efa/efa_verbs.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/infiniband/hw/efa/efa_verbs.c +7 -1
index 434d60235945..5cd34746e6a6 100644
@@ -282,7 +282,13 @@ static void efa_link_gbps_to_speed_and_width(u16 gbps,
 					     enum ib_port_speed *speed,
 					     enum ib_port_width *width)
 {
-	if (gbps >= 400) {
+	if (gbps >= 1600) {
+		*width = IB_WIDTH_8X;
+		*speed = IB_SPEED_XDR;
+	} else if (gbps >= 800) {
+		*width = IB_WIDTH_8X;
+		*speed = IB_SPEED_NDR;
+	} else if (gbps >= 400) {
 		*width = IB_WIDTH_8X;
 		*speed = IB_SPEED_HDR;
 	} else if (gbps >= 200) {
Signature · 1 line
2.47.3