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:
3f37cae
)
IB/mlx4: Set GRH:HopLimit when sending globally routed MADs
author
Roland Dreier
<
[email protected]
>
Sat, 19 May 2007 15:51:57 +0000
(08:51 -0700)
committer
Roland Dreier
<
[email protected]
>
Sat, 19 May 2007 15:51:57 +0000
(08:51 -0700)
This is the same issue discovered in mthca by Rolf Manderscheid
<
[email protected]
>.
Signed-off-by: Roland Dreier <
[email protected]
>
drivers/infiniband/hw/mlx4/qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx4/qp.c
b/drivers/infiniband/hw/mlx4/qp.c
index 9c362fa7146597bd3df50a78ea733b7c36692710..0cf8b95128fd6ece1d66ef9d400bb40f754ee51c 100644
(file)
--- a/
drivers/infiniband/hw/mlx4/qp.c
+++ b/
drivers/infiniband/hw/mlx4/qp.c
@@
-952,6
+952,7
@@
static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_send_wr *wr,
(be32_to_cpu(ah->av.sl_tclass_flowlabel) >> 20) & 0xff;
sqp->ud_header.grh.flow_label =
ah->av.sl_tclass_flowlabel & cpu_to_be32(0xfffff);
+ sqp->ud_header.grh.hop_limit = ah->av.hop_limit;
ib_get_cached_gid(ib_dev, be32_to_cpu(ah->av.port_pd) >> 24,
ah->av.gid_index, &sqp->ud_header.grh.source_gid);
memcpy(sqp->ud_header.grh.destination_gid.raw,