Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5219
b: refs/heads/master
c: 497677a
h: refs/heads/master
i:
  5217: dd5210d
  5215: a80d81f
v: v3
  • Loading branch information
Hal Rosenstock authored and Linus Torvalds committed Jul 27, 2005
1 parent 9391484 commit 9f10435
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 513789ed995fb2ba72ba2a5bee53ea11d1170580
refs/heads/master: 497677ab940e637a41351dca6610bc4320abc8f1
8 changes: 4 additions & 4 deletions trunk/drivers/infiniband/core/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ static int agent_mad_send(struct ib_mad_agent *mad_agent,
/* Should sgid be looked up ? */
ah_attr.grh.sgid_index = 0;
ah_attr.grh.hop_limit = grh->hop_limit;
ah_attr.grh.flow_label = be32_to_cpup(
&grh->version_tclass_flow) & 0xfffff;
ah_attr.grh.traffic_class = (be32_to_cpup(
&grh->version_tclass_flow) >> 20) & 0xff;
ah_attr.grh.flow_label = be32_to_cpu(
grh->version_tclass_flow) & 0xfffff;
ah_attr.grh.traffic_class = (be32_to_cpu(
grh->version_tclass_flow) >> 20) & 0xff;
memcpy(ah_attr.grh.dgid.raw,
grh->sgid.raw,
sizeof(ah_attr.grh.dgid));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/core/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc,
return ERR_PTR(ret);

ah_attr.grh.sgid_index = (u8) gid_index;
flow_class = be32_to_cpu(&grh->version_tclass_flow);
flow_class = be32_to_cpu(grh->version_tclass_flow);
ah_attr.grh.flow_label = flow_class & 0xFFFFF;
ah_attr.grh.traffic_class = (flow_class >> 20) & 0xFF;
ah_attr.grh.hop_limit = grh->hop_limit;
Expand Down

0 comments on commit 9f10435

Please sign in to comment.