Skip to content

Commit 766b7f6

Browse files
Dasaratharaman Chandramoulidledford
authored andcommitted
IB/mthca: Rename to_ib_ah_attr to to_rdma_ah_attr
local function to_ib_ah_attr is renamed so it in sync with 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 3834938 commit 766b7f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/infiniband/hw/mthca/mthca_qp.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,9 @@ static int to_ib_qp_access_flags(int mthca_flags)
393393
return ib_flags;
394394
}
395395

396-
static void to_ib_ah_attr(struct mthca_dev *dev,
397-
struct rdma_ah_attr *ib_ah_attr,
398-
struct mthca_qp_path *path)
396+
static void to_rdma_ah_attr(struct mthca_dev *dev,
397+
struct rdma_ah_attr *ib_ah_attr,
398+
struct mthca_qp_path *path)
399399
{
400400
memset(ib_ah_attr, 0, sizeof *ib_ah_attr);
401401
ib_ah_attr->port_num = (be32_to_cpu(path->port_pkey) >> 24) & 0x3;
@@ -469,8 +469,8 @@ int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_m
469469
to_ib_qp_access_flags(be32_to_cpu(context->params2));
470470

471471
if (qp->transport == RC || qp->transport == UC) {
472-
to_ib_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path);
473-
to_ib_ah_attr(dev, &qp_attr->alt_ah_attr, &context->alt_path);
472+
to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path);
473+
to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, &context->alt_path);
474474
qp_attr->alt_pkey_index =
475475
be32_to_cpu(context->alt_path.port_pkey) & 0x7f;
476476
qp_attr->alt_port_num = qp_attr->alt_ah_attr.port_num;

0 commit comments

Comments
 (0)