Commit:     7084f8429c940bac856123ce6d3946638fe20364
Parent:     630e61f2fa9bc842f1065ffa023aae8065a5ab23
Author:     Roland Dreier <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 16 15:31:24 2007 -0800
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Fri Feb 16 15:31:24 2007 -0800

    IB/core: Set static rate in ib_init_ah_from_path()
    The static rate from the path record should be put into the address
    vector -- a long time ago the rate in the address attributes needed to
    be a relative rate, which required more munging, but now that the
    conversion from absolute to relative is done in the low-level driver,
    it's easy for ib_init_ah_from_path() to put the absolute rate in.
    Cc: Jason Gunthorpe <[EMAIL PROTECTED]>
    Cc: Sean Hefty <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/core/sa_query.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/core/sa_query.c 
index d7d4a53..68db633 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -471,6 +471,7 @@ int ib_init_ah_from_path(struct ib_device *device, u8 
        ah_attr->sl = rec->sl;
        ah_attr->src_path_bits = be16_to_cpu(rec->slid) & 0x7f;
        ah_attr->port_num = port_num;
+       ah_attr->static_rate = rec->rate;
        if (rec->hop_limit > 1) {
                ah_attr->ah_flags = IB_AH_GRH;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to