IB: simplify static rate encoding
[linux-block.git] / drivers / infiniband / ulp / ipoib / ipoib_fs.c
index 685258e34034c90d24960b66a09041abd0fc0c05..5dde380e8dbe9c2653c0014020f32ebc8e87732d 100644 (file)
@@ -213,7 +213,7 @@ static int ipoib_path_seq_show(struct seq_file *file, void *iter_ptr)
                   gid_buf, path.pathrec.dlid ? "yes" : "no");
 
        if (path.pathrec.dlid) {
-               rate = ib_sa_rate_enum_to_int(path.pathrec.rate) * 25;
+               rate = ib_rate_to_mult(path.pathrec.rate) * 25;
 
                seq_printf(file,
                           "  DLID:     0x%04x\n"