]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/infiniband/hw/ehca/ehca_hca.c
IB: Use central enum for speed instead of hard-coded values
[mirror_ubuntu-bionic-kernel.git] / drivers / infiniband / hw / ehca / ehca_hca.c
index 73edc3668663a2cb8f2b987db1c8945016df4714..9ed4d2588304a2029e4d401aaee28e8cddd3403e 100644 (file)
@@ -233,7 +233,7 @@ int ehca_query_port(struct ib_device *ibdev,
                props->phys_state      = 5;
                props->state           = rblock->state;
                props->active_width    = IB_WIDTH_12X;
-               props->active_speed    = 0x1;
+               props->active_speed    = IB_SPEED_SDR;
        }
 
 query_port1: