IB/core: Add HDR speed enum
authorNoa Osherovich <noaos@mellanox.com>
Thu, 20 Apr 2017 17:53:31 +0000 (20:53 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Apr 2017 16:29:31 +0000 (12:29 -0400)
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>
drivers/infiniband/core/sysfs.c
include/rdma/ib_verbs.h

index 48bb75503255658efb7edec1a9fbab3907fded72..7ebe1ef23652b9be71bc833deaab394344b6b50b 100644 (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;
index 56fa31e1948a60012277d4c9c494ab8d96e8bfdd..91686d2e94dd1a579a8c7bee6d6acb27b6d1e1e4 100644 (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
 };
 
 /**