diff options
| author | Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> | 2017-04-29 14:41:21 -0400 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2017-05-01 14:32:43 -0400 |
| commit | bfbfd661c9ea2cceb5bb4de8b280ac8a37cf68c2 (patch) | |
| tree | 1ed1cd746c9b6405b9e7a7d8f9a005586becb468 | |
| parent | 67b985b6c75530bd3dccd55d61d2c9027ab2ca38 (diff) | |
IB/core: Rename ib_query_ah to rdma_query_ah
Rename ib_query_ah to rdma_query_ah so its in sync with the
rename of the ib address handle attribute
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
| -rw-r--r-- | drivers/infiniband/core/mad.c | 2 | ||||
| -rw-r--r-- | drivers/infiniband/core/mad_rmpp.c | 2 | ||||
| -rw-r--r-- | drivers/infiniband/core/verbs.c | 4 | ||||
| -rw-r--r-- | drivers/infiniband/hw/mlx4/mcg.c | 2 | ||||
| -rw-r--r-- | include/rdma/ib_verbs.h | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index 6d8c9eece155..309c7f3f0219 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c | |||
| @@ -1847,7 +1847,7 @@ static inline int rcv_has_same_gid(const struct ib_mad_agent_private *mad_agent_ | |||
| 1847 | /* both requests, or both responses. GIDs different */ | 1847 | /* both requests, or both responses. GIDs different */ |
| 1848 | return 0; | 1848 | return 0; |
| 1849 | 1849 | ||
| 1850 | if (ib_query_ah(wr->send_buf.ah, &attr)) | 1850 | if (rdma_query_ah(wr->send_buf.ah, &attr)) |
| 1851 | /* Assume not equal, to avoid false positives. */ | 1851 | /* Assume not equal, to avoid false positives. */ |
| 1852 | return 0; | 1852 | return 0; |
| 1853 | 1853 | ||
diff --git a/drivers/infiniband/core/mad_rmpp.c b/drivers/infiniband/core/mad_rmpp.c index 3536dcfa852a..0e597c812579 100644 --- a/drivers/infiniband/core/mad_rmpp.c +++ b/drivers/infiniband/core/mad_rmpp.c | |||
| @@ -867,7 +867,7 @@ static int init_newwin(struct ib_mad_send_wr_private *mad_send_wr) | |||
| 867 | (rmpp_recv->method & IB_MGMT_METHOD_RESP)) | 867 | (rmpp_recv->method & IB_MGMT_METHOD_RESP)) |
| 868 | continue; | 868 | continue; |
| 869 | 869 | ||
| 870 | if (ib_query_ah(mad_send_wr->send_buf.ah, &ah_attr)) | 870 | if (rdma_query_ah(mad_send_wr->send_buf.ah, &ah_attr)) |
| 871 | continue; | 871 | continue; |
| 872 | 872 | ||
| 873 | if (rmpp_recv->slid == ah_attr.dlid) { | 873 | if (rmpp_recv->slid == ah_attr.dlid) { |
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index e856547e2cc2..35efff65f340 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c | |||
| @@ -579,13 +579,13 @@ int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) | |||
| 579 | } | 579 | } |
| 580 | EXPORT_SYMBOL(rdma_modify_ah); | 580 | EXPORT_SYMBOL(rdma_modify_ah); |
| 581 | 581 | ||
| 582 | int ib_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) | 582 | int rdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr) |
| 583 | { | 583 | { |
| 584 | return ah->device->query_ah ? | 584 | return ah->device->query_ah ? |
| 585 | ah->device->query_ah(ah, ah_attr) : | 585 | ah->device->query_ah(ah, ah_attr) : |
| 586 | -ENOSYS; | 586 | -ENOSYS; |
| 587 | } | 587 | } |
| 588 | EXPORT_SYMBOL(ib_query_ah); | 588 | EXPORT_SYMBOL(rdma_query_ah); |
| 589 | 589 | ||
| 590 | int ib_destroy_ah(struct ib_ah *ah) | 590 | int ib_destroy_ah(struct ib_ah *ah) |
| 591 | { | 591 | { |
diff --git a/drivers/infiniband/hw/mlx4/mcg.c b/drivers/infiniband/hw/mlx4/mcg.c index 492eded88afb..eb009045643d 100644 --- a/drivers/infiniband/hw/mlx4/mcg.c +++ b/drivers/infiniband/hw/mlx4/mcg.c | |||
| @@ -237,7 +237,7 @@ static int send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx, | |||
| 237 | if (!agent) | 237 | if (!agent) |
| 238 | return -EAGAIN; | 238 | return -EAGAIN; |
| 239 | 239 | ||
| 240 | ib_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr); | 240 | rdma_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr); |
| 241 | 241 | ||
| 242 | if (ib_find_cached_pkey(&dev->ib_dev, ctx->port, IB_DEFAULT_PKEY_FULL, &wc.pkey_index)) | 242 | if (ib_find_cached_pkey(&dev->ib_dev, ctx->port, IB_DEFAULT_PKEY_FULL, &wc.pkey_index)) |
| 243 | return -EINVAL; | 243 | return -EINVAL; |
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 73fb465e88fc..16fd94026d49 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
| @@ -2787,13 +2787,13 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc, | |||
| 2787 | int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); | 2787 | int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); |
| 2788 | 2788 | ||
| 2789 | /** | 2789 | /** |
| 2790 | * ib_query_ah - Queries the address vector associated with an address | 2790 | * rdma_query_ah - Queries the address vector associated with an address |
| 2791 | * handle. | 2791 | * handle. |
| 2792 | * @ah: The address handle to query. | 2792 | * @ah: The address handle to query. |
| 2793 | * @ah_attr: The address vector attributes associated with the address | 2793 | * @ah_attr: The address vector attributes associated with the address |
| 2794 | * handle. | 2794 | * handle. |
| 2795 | */ | 2795 | */ |
| 2796 | int ib_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); | 2796 | int rdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr); |
| 2797 | 2797 | ||
| 2798 | /** | 2798 | /** |
| 2799 | * ib_destroy_ah - Destroys an address handle. | 2799 | * ib_destroy_ah - Destroys an address handle. |
