Commit:     3f37cae6944de9d380c83f717f73d91ec6255d98
Parent:     1f8f7b7a7b885a0041a21b3d93c507269baf57c8
Author:     Rolf Manderscheid <[EMAIL PROTECTED]>
AuthorDate: Thu May 17 09:45:48 2007 -0600
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Sat May 19 08:51:56 2007 -0700

    IB/mthca: Set GRH:HopLimit when building MLX headers
    Global CM packets used by rmda_cm were being sent with a GRH:hopLimit
    of zero, causing them to be dropped by the router.  The problem is a
    missing initialization of the hop_limit field in mthca_read_ah(),
    which was called by build_mlx_header() when sending a MAD on QP1.
    Signed-off-by: Rolf Manderscheid <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/hw/mthca/mthca_av.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_av.c 
index 27caf3b..4b111a8 100644
--- a/drivers/infiniband/hw/mthca/mthca_av.c
+++ b/drivers/infiniband/hw/mthca/mthca_av.c
@@ -279,6 +279,7 @@ int mthca_read_ah(struct mthca_dev *dev, struct mthca_ah 
                        (be32_to_cpu(ah->av->sl_tclass_flowlabel) >> 20) & 0xff;
                header->grh.flow_label    =
                        ah->av->sl_tclass_flowlabel & cpu_to_be32(0xfffff);
+               header->grh.hop_limit     = ah->av->hop_limit;
                                  be32_to_cpu(ah->av->port_pd) >> 24,
                                  ah->av->gid_index % dev->limits.gid_table_len,
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