diff options
author | Sean Hefty <sean.hefty@intel.com> | 2006-06-17 23:37:40 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-06-17 23:37:40 -0400 |
commit | ca222c6b2c48e1e0be330a55611ba394251330cb (patch) | |
tree | 80491af9034f3cadad8b68fdb140bb6909f4e48e /drivers/infiniband/core/sa_query.c | |
parent | 6d969a471ba107d94cf03dab3c69f45b9733f500 (diff) |
IB/cm: Use address handle helpers
Use new ib_init_ah_from_wc() and ib_init_ah_from_path() helper
functions to clean up the IB CM.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/sa_query.c')
-rw-r--r-- | drivers/infiniband/core/sa_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 08d9dd5e0487..e911c99ff843 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c | |||
@@ -463,9 +463,9 @@ int ib_init_ah_from_path(struct ib_device *device, u8 port_num, | |||
463 | if (ret) | 463 | if (ret) |
464 | return ret; | 464 | return ret; |
465 | 465 | ||
466 | ah_attr->grh.sgid_index = gid_index; | 466 | ah_attr->grh.sgid_index = gid_index; |
467 | ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); | 467 | ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); |
468 | ah_attr->grh.hop_limit = rec->hop_limit; | 468 | ah_attr->grh.hop_limit = rec->hop_limit; |
469 | ah_attr->grh.traffic_class = rec->traffic_class; | 469 | ah_attr->grh.traffic_class = rec->traffic_class; |
470 | } | 470 | } |
471 | return 0; | 471 | return 0; |