Skip to content

Commit

Permalink
RDMA/ipoib: Add 50Gb and 100Gb link speeds to ethtool
Browse files Browse the repository at this point in the history
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.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Meir Lichtinger <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
meir-lichtinger authored and jgunthorpe committed Nov 2, 2020
1 parent 5c41936 commit 235b6ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 235b6ac

Please sign in to comment.