diff options
-rw-r--r-- | drivers/infiniband/core/agent.c | 8 | ||||
-rw-r--r-- | drivers/infiniband/core/verbs.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/infiniband/core/agent.c b/drivers/infiniband/core/agent.c index dde25ee81b65..729f0b0d983a 100644 --- a/drivers/infiniband/core/agent.c +++ b/drivers/infiniband/core/agent.c | |||
@@ -156,10 +156,10 @@ static int agent_mad_send(struct ib_mad_agent *mad_agent, | |||
156 | /* Should sgid be looked up ? */ | 156 | /* Should sgid be looked up ? */ |
157 | ah_attr.grh.sgid_index = 0; | 157 | ah_attr.grh.sgid_index = 0; |
158 | ah_attr.grh.hop_limit = grh->hop_limit; | 158 | ah_attr.grh.hop_limit = grh->hop_limit; |
159 | ah_attr.grh.flow_label = be32_to_cpup( | 159 | ah_attr.grh.flow_label = be32_to_cpu( |
160 | &grh->version_tclass_flow) & 0xfffff; | 160 | grh->version_tclass_flow) & 0xfffff; |
161 | ah_attr.grh.traffic_class = (be32_to_cpup( | 161 | ah_attr.grh.traffic_class = (be32_to_cpu( |
162 | &grh->version_tclass_flow) >> 20) & 0xff; | 162 | grh->version_tclass_flow) >> 20) & 0xff; |
163 | memcpy(ah_attr.grh.dgid.raw, | 163 | memcpy(ah_attr.grh.dgid.raw, |
164 | grh->sgid.raw, | 164 | grh->sgid.raw, |
165 | sizeof(ah_attr.grh.dgid)); | 165 | sizeof(ah_attr.grh.dgid)); |
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index 62951594eec6..506fdf1f2a26 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c | |||
@@ -113,7 +113,7 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, struct ib_wc *wc, | |||
113 | return ERR_PTR(ret); | 113 | return ERR_PTR(ret); |
114 | 114 | ||
115 | ah_attr.grh.sgid_index = (u8) gid_index; | 115 | ah_attr.grh.sgid_index = (u8) gid_index; |
116 | flow_class = be32_to_cpu(&grh->version_tclass_flow); | 116 | flow_class = be32_to_cpu(grh->version_tclass_flow); |
117 | ah_attr.grh.flow_label = flow_class & 0xFFFFF; | 117 | ah_attr.grh.flow_label = flow_class & 0xFFFFF; |
118 | ah_attr.grh.traffic_class = (flow_class >> 20) & 0xFF; | 118 | ah_attr.grh.traffic_class = (flow_class >> 20) & 0xFF; |
119 | ah_attr.grh.hop_limit = grh->hop_limit; | 119 | ah_attr.grh.hop_limit = grh->hop_limit; |