RDMA/efa: Report 800 and 1600 Gbps link speed
Subsystems (2)
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.
Reviewed-by Michael Margolin <[email protected]>
Reviewed-by Yonatan Nachum <[email protected]>
Signed-off-by Tom Sela <[email protected]>
--- drivers/infiniband/hw/efa/efa_verbs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/infiniband/hw/efa/efa_verbs.c +7 -1
@@ -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
Quoted 9 lines · Tom Sela
Add support for reporting 800 Gbps as 8X NDR and 1600 Gbps as 8X XDR link speeds.
Reviewed-by Michael Margolin <[email protected]>Reviewed-by Yonatan Nachum <[email protected]>Signed-off-by Tom Sela <[email protected]>--- drivers/infiniband/hw/efa/efa_verbs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
Applied to for-next thanks
Jason