IB/core: Add HDR speed enum

Add high data rate speed to the ib_port_speed enumeration.

Signed-off-by: Noa Osherovich <[email protected]>
Signed-off-by: Eran Ben Elisha <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
Noa Osherovich
2017-04-21 12:29:31 -04:00
committed by Doug Ledford
parent 12f8fedef2
commit 12113a35ad
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -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;
+2 -1
View File
@@ -433,7 +433,8 @@ enum ib_port_speed {
IB_SPEED_QDR = 4,
IB_SPEED_FDR10 = 8,
IB_SPEED_FDR = 16,
IB_SPEED_EDR = 32
IB_SPEED_EDR = 32,
IB_SPEED_HDR = 64
};
/**