diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_fs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_fs.c b/drivers/infiniband/ulp/ipoib/ipoib_fs.c index 86eae229dc49..0e2fe4631ba8 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_fs.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_fs.c | |||
@@ -212,16 +212,15 @@ static int ipoib_path_seq_show(struct seq_file *file, void *iter_ptr) | |||
212 | gid_buf, path.pathrec.dlid ? "yes" : "no"); | 212 | gid_buf, path.pathrec.dlid ? "yes" : "no"); |
213 | 213 | ||
214 | if (path.pathrec.dlid) { | 214 | if (path.pathrec.dlid) { |
215 | rate = ib_rate_to_mult(path.pathrec.rate) * 25; | 215 | rate = ib_rate_to_mbps(path.pathrec.rate); |
216 | 216 | ||
217 | seq_printf(file, | 217 | seq_printf(file, |
218 | " DLID: 0x%04x\n" | 218 | " DLID: 0x%04x\n" |
219 | " SL: %12d\n" | 219 | " SL: %12d\n" |
220 | " rate: %*d%s Gb/sec\n", | 220 | " rate: %8d.%d Gb/sec\n", |
221 | be16_to_cpu(path.pathrec.dlid), | 221 | be16_to_cpu(path.pathrec.dlid), |
222 | path.pathrec.sl, | 222 | path.pathrec.sl, |
223 | 10 - ((rate % 10) ? 2 : 0), | 223 | rate / 1000, rate % 1000); |
224 | rate / 10, rate % 10 ? ".5" : ""); | ||
225 | } | 224 | } |
226 | 225 | ||
227 | seq_putc(file, '\n'); | 226 | seq_putc(file, '\n'); |