Commit c7adf771 authored by Meir Lichtinger's avatar Meir Lichtinger Committed by Jason Gunthorpe
Browse files

IB/core: Add support for NDR link speed

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: default avatarMeir Lichtinger <meirl@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 235b6ac3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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";