summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorNoa Osherovich <noaos@mellanox.com>2017-04-20 19:53:31 +0200
committerDoug Ledford <dledford@redhat.com>2017-04-21 18:29:31 +0200
commit12113a35ada6bba074836d3d26671213e12069bf (patch)
treef6d48e5abe402e5e4aa380827edfcee39d146ed5 /drivers/infiniband
parentIB/mlx5: Set correct SL in completion for RoCE (diff)
downloadlinux-12113a35ada6bba074836d3d26671213e12069bf.tar.xz
linux-12113a35ada6bba074836d3d26671213e12069bf.zip
IB/core: Add HDR speed enum
Add high data rate speed to the ib_port_speed enumeration. Signed-off-by: Noa Osherovich <noaos@mellanox.com> Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/sysfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index 48bb75503255..7ebe1ef23652 100644
--- a/drivers/infiniband/core/sysfs.c
+++ b/drivers/infiniband/core/sysfs.c
@@ -253,6 +253,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused,
speed = " EDR";
rate = 250;
break;
+ case IB_SPEED_HDR:
+ speed = " HDR";
+ rate = 500;
+ break;
case IB_SPEED_SDR:
default: /* default to SDR for invalid rates */
rate = 25;