Commit 12113a35 authored by Noa Osherovich's avatar Noa Osherovich Committed by Doug Ledford

IB/core: Add HDR speed enum

Add high data rate speed to the ib_port_speed enumeration.
Signed-off-by: default avatarNoa Osherovich <noaos@mellanox.com>
Signed-off-by: default avatarEran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 12f8fede
...@@ -253,6 +253,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused, ...@@ -253,6 +253,10 @@ static ssize_t rate_show(struct ib_port *p, struct port_attribute *unused,
speed = " EDR"; speed = " EDR";
rate = 250; rate = 250;
break; break;
case IB_SPEED_HDR:
speed = " HDR";
rate = 500;
break;
case IB_SPEED_SDR: case IB_SPEED_SDR:
default: /* default to SDR for invalid rates */ default: /* default to SDR for invalid rates */
rate = 25; rate = 25;
......
...@@ -433,7 +433,8 @@ enum ib_port_speed { ...@@ -433,7 +433,8 @@ enum ib_port_speed {
IB_SPEED_QDR = 4, IB_SPEED_QDR = 4,
IB_SPEED_FDR10 = 8, IB_SPEED_FDR10 = 8,
IB_SPEED_FDR = 16, IB_SPEED_FDR = 16,
IB_SPEED_EDR = 32 IB_SPEED_EDR = 32,
IB_SPEED_HDR = 64
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment