]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
RDMA/efa: Report 800 and 1600 Gbps link speed
authorTom Sela <tomsela@amazon.com>
Mon, 8 Jun 2026 08:37:36 +0000 (08:37 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Jun 2026 19:02:01 +0000 (16:02 -0300)
Add support for reporting 800 Gbps as 8X NDR and 1600 Gbps as 8X XDR
link speeds.

Link: https://patch.msgid.link/r/20260608083736.48454-1-tomsela@amazon.com
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Tom Sela <tomsela@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa_verbs.c

index 434d602359452707bbe90aa59b1aa35b28ae0025..5cd34746e6a6ea8c41acdaf4f3dd6a91a69d7c10 100644 (file)
@@ -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) {