Skip to content

Commit f988653

Browse files
Dasaratharaman Chandramoulidledford
authored andcommitted
IB/PVRDMA: Rename ib_ah_attr related functions
Functions pvrdma_ah_attr_to_ib and ib_ah_attr_to_pvrdma have been renamed so they are in sync wit the rename of the ib_ah_attr structure 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 766b7f6 commit f988653

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

drivers/infiniband/hw/vmw_pvrdma/pvrdma.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,10 @@ void pvrdma_global_route_to_ib(struct ib_global_route *dst,
440440
const struct pvrdma_global_route *src);
441441
void ib_global_route_to_pvrdma(struct pvrdma_global_route *dst,
442442
const struct ib_global_route *src);
443-
void pvrdma_ah_attr_to_ib(struct rdma_ah_attr *dst,
444-
const struct pvrdma_ah_attr *src);
445-
void ib_ah_attr_to_pvrdma(struct pvrdma_ah_attr *dst,
446-
const struct rdma_ah_attr *src);
443+
void pvrdma_ah_attr_to_rdma(struct rdma_ah_attr *dst,
444+
const struct pvrdma_ah_attr *src);
445+
void rdma_ah_attr_to_pvrdma(struct pvrdma_ah_attr *dst,
446+
const struct rdma_ah_attr *src);
447447

448448
int pvrdma_uar_table_init(struct pvrdma_dev *dev);
449449
void pvrdma_uar_table_cleanup(struct pvrdma_dev *dev);

drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ void ib_global_route_to_pvrdma(struct pvrdma_global_route *dst,
277277
dst->traffic_class = src->traffic_class;
278278
}
279279

280-
void pvrdma_ah_attr_to_ib(struct rdma_ah_attr *dst,
281-
const struct pvrdma_ah_attr *src)
280+
void pvrdma_ah_attr_to_rdma(struct rdma_ah_attr *dst,
281+
const struct pvrdma_ah_attr *src)
282282
{
283283
pvrdma_global_route_to_ib(&dst->grh, &src->grh);
284284
dst->dlid = src->dlid;
@@ -290,8 +290,8 @@ void pvrdma_ah_attr_to_ib(struct rdma_ah_attr *dst,
290290
memcpy(&dst->dmac, &src->dmac, sizeof(dst->dmac));
291291
}
292292

293-
void ib_ah_attr_to_pvrdma(struct pvrdma_ah_attr *dst,
294-
const struct rdma_ah_attr *src)
293+
void rdma_ah_attr_to_pvrdma(struct pvrdma_ah_attr *dst,
294+
const struct rdma_ah_attr *src)
295295
{
296296
ib_global_route_to_pvrdma(&dst->grh, &src->grh);
297297
dst->dlid = src->dlid;

drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
533533
cmd->attrs.alt_port_num = attr->alt_port_num;
534534
cmd->attrs.alt_timeout = attr->alt_timeout;
535535
ib_qp_cap_to_pvrdma(&cmd->attrs.cap, &attr->cap);
536-
ib_ah_attr_to_pvrdma(&cmd->attrs.ah_attr, &attr->ah_attr);
537-
ib_ah_attr_to_pvrdma(&cmd->attrs.alt_ah_attr, &attr->alt_ah_attr);
536+
rdma_ah_attr_to_pvrdma(&cmd->attrs.ah_attr, &attr->ah_attr);
537+
rdma_ah_attr_to_pvrdma(&cmd->attrs.alt_ah_attr, &attr->alt_ah_attr);
538538

539539
ret = pvrdma_cmd_post(dev, &req, &rsp, PVRDMA_CMD_MODIFY_QP_RESP);
540540
if (ret < 0) {
@@ -938,8 +938,8 @@ int pvrdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
938938
attr->alt_port_num = resp->attrs.alt_port_num;
939939
attr->alt_timeout = resp->attrs.alt_timeout;
940940
pvrdma_qp_cap_to_ib(&attr->cap, &resp->attrs.cap);
941-
pvrdma_ah_attr_to_ib(&attr->ah_attr, &resp->attrs.ah_attr);
942-
pvrdma_ah_attr_to_ib(&attr->alt_ah_attr, &resp->attrs.alt_ah_attr);
941+
pvrdma_ah_attr_to_rdma(&attr->ah_attr, &resp->attrs.ah_attr);
942+
pvrdma_ah_attr_to_rdma(&attr->alt_ah_attr, &resp->attrs.alt_ah_attr);
943943

944944
qp->state = attr->qp_state;
945945

0 commit comments

Comments
 (0)