From: Noa Osherovich Date: Thu, 20 Apr 2017 17:53:31 +0000 (+0300) Subject: IB/core: Add HDR speed enum X-Git-Tag: MMI-PSA29.97-13-9~5649^3~119 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=12113a35ada6bba074836d3d26671213e12069bf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IB/core: Add HDR speed enum Add high data rate speed to the ib_port_speed enumeration. Signed-off-by: Noa Osherovich Signed-off-by: Eran Ben Elisha Signed-off-by: Leon Romanovsky Signed-off-by: Doug Ledford --- 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; diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 56fa31e1948a..91686d2e94dd 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -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 }; /**