projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30fc5c3
)
IB/mthca: Fix default static rate returned for Tavor in AV
author
Jack Morgenstein
<jackm@mellanox.co.il>
Mon, 28 Aug 2006 16:08:53 +0000
(19:08 +0300)
committer
Roland Dreier
<rolandd@cisco.com>
Fri, 22 Sep 2006 22:22:40 +0000
(15:22 -0700)
When default static rate is returned for Tavor, need to translate it
to an ib rate value.
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_av.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mthca/mthca_av.c
b/drivers/infiniband/hw/mthca/mthca_av.c
index e215041b2db9cb7cedd3f4616370659cf1a0dd28..69599455aca2c490e88d93fe631e0f17ed243e6f 100644
(file)
--- a/
drivers/infiniband/hw/mthca/mthca_av.c
+++ b/
drivers/infiniband/hw/mthca/mthca_av.c
@@
-90,7
+90,7
@@
static enum ib_rate tavor_rate_to_ib(u8 mthca_rate, u8 port_rate)
case MTHCA_RATE_TAVOR_1X: return IB_RATE_2_5_GBPS;
case MTHCA_RATE_TAVOR_1X_DDR: return IB_RATE_5_GBPS;
case MTHCA_RATE_TAVOR_4X: return IB_RATE_10_GBPS;
- default: return
port_rate
;
+ default: return
mult_to_ib_rate(port_rate)
;
}
}