]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
IB/core: Add support for NDR link speed
authorMeir Lichtinger <meirl@mellanox.com>
Mon, 26 Oct 2020 13:37:37 +0000 (15:37 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Nov 2020 19:48:56 +0000 (15:48 -0400)
Add new IBTA speed NDR, supporting signaling rate of 100Gb.

Link: https://lore.kernel.org/r/20201026133738.1340432-2-leon@kernel.org
Signed-off-by: Meir Lichtinger <meirl@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/sysfs.c

index 88460d76a84afdcdf8fb249a94f34c33b25741a4..b8abb30f80df5d0806fe8ca6f8deba3d99ae8a76 100644 (file)
@@ -275,6 +275,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused,
                speed = " HDR";
                rate = 500;
                break;
+       case IB_SPEED_NDR:
+               speed = " NDR";
+               rate = 1000;
+               break;
        case IB_SPEED_SDR:
        default:                /* default to SDR for invalid rates */
                speed = " SDR";