projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
235b6ac
)
IB/core: Add support for NDR link speed
author
Meir Lichtinger
<meirl@mellanox.com>
Mon, 26 Oct 2020 13:37:37 +0000
(15:37 +0200)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/sysfs.c
b/drivers/infiniband/core/sysfs.c
index 88460d76a84afdcdf8fb249a94f34c33b25741a4..b8abb30f80df5d0806fe8ca6f8deba3d99ae8a76 100644
(file)
--- a/
drivers/infiniband/core/sysfs.c
+++ b/
drivers/infiniband/core/sysfs.c
@@
-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";