diff options
author | Jack Morgenstein <jackm@mellanox.co.il> | 2006-08-28 12:12:39 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:42 -0400 |
commit | 9e583b85c2a0215dc7f4427361b4f75fcc0316af (patch) | |
tree | 2ad47c07a32da31189fc5d017e757adab34154fc /drivers/infiniband/hw/mthca/mthca_qp.c | |
parent | f6f76725b5ed8085c602b16bfd309c9957fb84c8 (diff) |
IB/mthca: Return correct number of bits for static rate in query_qp
Incorrect number of bits was taken for static_rate field.
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_qp.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c index 4ac25cf06794..9324b6204ac5 100644 --- a/drivers/infiniband/hw/mthca/mthca_qp.c +++ b/drivers/infiniband/hw/mthca/mthca_qp.c | |||
@@ -408,7 +408,7 @@ static void to_ib_ah_attr(struct mthca_dev *dev, struct ib_ah_attr *ib_ah_attr, | |||
408 | ib_ah_attr->sl = be32_to_cpu(path->sl_tclass_flowlabel) >> 28; | 408 | ib_ah_attr->sl = be32_to_cpu(path->sl_tclass_flowlabel) >> 28; |
409 | ib_ah_attr->src_path_bits = path->g_mylmc & 0x7f; | 409 | ib_ah_attr->src_path_bits = path->g_mylmc & 0x7f; |
410 | ib_ah_attr->static_rate = mthca_rate_to_ib(dev, | 410 | ib_ah_attr->static_rate = mthca_rate_to_ib(dev, |
411 | path->static_rate & 0x7, | 411 | path->static_rate & 0xf, |
412 | ib_ah_attr->port_num); | 412 | ib_ah_attr->port_num); |
413 | ib_ah_attr->ah_flags = (path->g_mylmc & (1 << 7)) ? IB_AH_GRH : 0; | 413 | ib_ah_attr->ah_flags = (path->g_mylmc & (1 << 7)) ? IB_AH_GRH : 0; |
414 | if (ib_ah_attr->ah_flags) { | 414 | if (ib_ah_attr->ah_flags) { |