Skip to content

Commit bfbfd66

Browse files
Dasaratharaman Chandramoulidledford
authored andcommitted
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 <[email protected]> Reviewed-by: Don Hiatt <[email protected]> Reviewed-by: Sean Hefty <[email protected]> Signed-off-by: Dasaratharaman Chandramouli <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 67b985b commit bfbfd66

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

drivers/infiniband/core/mad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ static inline int rcv_has_same_gid(const struct ib_mad_agent_private *mad_agent_
18471847
/* both requests, or both responses. GIDs different */
18481848
return 0;
18491849

1850-
if (ib_query_ah(wr->send_buf.ah, &attr))
1850+
if (rdma_query_ah(wr->send_buf.ah, &attr))
18511851
/* Assume not equal, to avoid false positives. */
18521852
return 0;
18531853

drivers/infiniband/core/mad_rmpp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ static int init_newwin(struct ib_mad_send_wr_private *mad_send_wr)
867867
(rmpp_recv->method & IB_MGMT_METHOD_RESP))
868868
continue;
869869

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))
871871
continue;
872872

873873
if (rmpp_recv->slid == ah_attr.dlid) {

drivers/infiniband/core/verbs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,13 @@ int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr)
579579
}
580580
EXPORT_SYMBOL(rdma_modify_ah);
581581

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)
583583
{
584584
return ah->device->query_ah ?
585585
ah->device->query_ah(ah, ah_attr) :
586586
-ENOSYS;
587587
}
588-
EXPORT_SYMBOL(ib_query_ah);
588+
EXPORT_SYMBOL(rdma_query_ah);
589589

590590
int ib_destroy_ah(struct ib_ah *ah)
591591
{

drivers/infiniband/hw/mlx4/mcg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static int send_mad_to_slave(int slave, struct mlx4_ib_demux_ctx *ctx,
237237
if (!agent)
238238
return -EAGAIN;
239239

240-
ib_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr);
240+
rdma_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr);
241241

242242
if (ib_find_cached_pkey(&dev->ib_dev, ctx->port, IB_DEFAULT_PKEY_FULL, &wc.pkey_index))
243243
return -EINVAL;

include/rdma/ib_verbs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2787,13 +2787,13 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc,
27872787
int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
27882788

27892789
/**
2790-
* ib_query_ah - Queries the address vector associated with an address
2790+
* rdma_query_ah - Queries the address vector associated with an address
27912791
* handle.
27922792
* @ah: The address handle to query.
27932793
* @ah_attr: The address vector attributes associated with the address
27942794
* handle.
27952795
*/
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);
27972797

27982798
/**
27992799
* ib_destroy_ah - Destroys an address handle.

0 commit comments

Comments
 (0)