IB/core: Rename ib_create_ah to rdma_create_ah
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Sat, 29 Apr 2017 18:41:19 +0000 (14:41 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 1 May 2017 18:32:43 +0000 (14:32 -0400)
Rename ib_create_ah to rdma_create_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>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/qib/qib_verbs.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c
include/rdma/ib_verbs.h

index c9751ccd9bf4c54517e5a6f63b7ca52b8361d323..ac62dd898a5e529e939f098a8c3d62b23305418b 100644 (file)
@@ -343,7 +343,7 @@ static int cm_alloc_msg(struct cm_id_private *cm_id_priv,
                ret = -ENODEV;
                goto out;
        }
-       ah = ib_create_ah(mad_agent->qp->pd, &av->ah_attr);
+       ah = rdma_create_ah(mad_agent->qp->pd, &av->ah_attr);
        if (IS_ERR(ah)) {
                ret = PTR_ERR(ah);
                goto out;
index 18e08533a84541b24fc1dd168d36208fb6f19fb3..e998d6baaeff842bc13b3e7256964d8a6b771305 100644 (file)
@@ -2043,7 +2043,7 @@ static void update_sm_ah(struct work_struct *work)
                        cpu_to_be64(IB_SA_WELL_KNOWN_GUID);
        }
 
-       new_ah->ah = ib_create_ah(port->agent->qp->pd, &ah_attr);
+       new_ah->ah = rdma_create_ah(port->agent->qp->pd, &ah_attr);
        if (IS_ERR(new_ah->ah)) {
                pr_warn("Couldn't create new SM AH\n");
                kfree(new_ah);
index 7198c4009988e1883cd8004837a6a51d29c65d08..3ac6f9740a0ea7352ecaf05507668a544e1fd464 100644 (file)
@@ -502,7 +502,7 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
                ah_attr.grh.traffic_class  = packet->mad.hdr.traffic_class;
        }
 
-       ah = ib_create_ah(agent->qp->pd, &ah_attr);
+       ah = rdma_create_ah(agent->qp->pd, &ah_attr);
        if (IS_ERR(ah)) {
                ret = PTR_ERR(ah);
                goto err_up;
index b1cde147758a2e6516a4779c3f859b02d81d3f72..b52f4a1495ad2561ced43ae4e3fdf1041bbf2907 100644 (file)
@@ -311,7 +311,7 @@ EXPORT_SYMBOL(ib_dealloc_pd);
 
 /* Address handles */
 
-struct ib_ah *ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr)
+struct ib_ah *rdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr)
 {
        struct ib_ah *ah;
 
@@ -326,7 +326,7 @@ struct ib_ah *ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr)
 
        return ah;
 }
-EXPORT_SYMBOL(ib_create_ah);
+EXPORT_SYMBOL(rdma_create_ah);
 
 int ib_get_rdma_header_version(const union rdma_network_hdr *hdr)
 {
@@ -567,7 +567,7 @@ struct ib_ah *ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc,
        if (ret)
                return ERR_PTR(ret);
 
-       return ib_create_ah(pd, &ah_attr);
+       return rdma_create_ah(pd, &ah_attr);
 }
 EXPORT_SYMBOL(ib_create_ah_from_wc);
 
index 0d3ae04d27a01083356a2dca1d61cdcae16f311f..3cd11222456a15121b66280c234f9a87b01241e8 100644 (file)
@@ -1518,7 +1518,7 @@ struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u16 dlid)
        rcu_read_lock();
        qp0 = rcu_dereference(ibp->rvp.qp[0]);
        if (qp0)
-               ah = ib_create_ah(qp0->ibqp.pd, &attr);
+               ah = rdma_create_ah(qp0->ibqp.pd, &attr);
        rcu_read_unlock();
        return ah;
 }
index d934959eb9b52ffb6af1e14e23b75563ec6c0016..76010d02e2ab1b64d79590d7357de2ee01162bd2 100644 (file)
@@ -200,8 +200,8 @@ static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl)
        ah_attr.sl       = sl;
        ah_attr.port_num = port_num;
 
-       new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
-                             &ah_attr);
+       new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
+                               &ah_attr);
        if (IS_ERR(new_ah))
                return;
 
@@ -563,7 +563,7 @@ int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port,
                        return -EINVAL;
                attr.ah_flags = IB_AH_GRH;
        }
-       ah = ib_create_ah(tun_ctx->pd, &attr);
+       ah = rdma_create_ah(tun_ctx->pd, &attr);
        if (IS_ERR(ah))
                return -ENOMEM;
 
@@ -1391,7 +1391,7 @@ int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port,
        /* create ah */
        sgid_index = attr->grh.sgid_index;
        attr->grh.sgid_index = 0;
-       ah = ib_create_ah(sqp_ctx->pd, attr);
+       ah = rdma_create_ah(sqp_ctx->pd, attr);
        if (IS_ERR(ah))
                return -ENOMEM;
        attr->grh.sgid_index = sgid_index;
index 00f78313929988569b3de1e7ef6ecfea4edc31e9..7f671a20649c8e96cec26532fd38b26493f6797f 100644 (file)
@@ -86,8 +86,8 @@ static void update_sm_ah(struct mthca_dev *dev,
        ah_attr.sl       = sl;
        ah_attr.port_num = port_num;
 
-       new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
-                             &ah_attr);
+       new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
+                               &ah_attr);
        if (IS_ERR(new_ah))
                return;
 
index 16a9aa1407bd5974fa8c64b1270b76ba34c1010b..de04acab07681e1cc10435036cf19a76cea1cd6d 100644 (file)
@@ -1374,7 +1374,7 @@ struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid)
        rcu_read_lock();
        qp0 = rcu_dereference(ibp->rvp.qp[0]);
        if (qp0)
-               ah = ib_create_ah(qp0->ibqp.pd, &attr);
+               ah = rdma_create_ah(qp0->ibqp.pd, &attr);
        rcu_read_unlock();
        return ah;
 }
index adbce02b333ef2811a428fe642776b360d79f29b..e0ba6b08aa96eca179089d53c5872cefb3f3814c 100644 (file)
@@ -65,7 +65,7 @@ struct ipoib_ah *ipoib_create_ah(struct net_device *dev,
        ah->last_send = 0;
        kref_init(&ah->ref);
 
-       vah = ib_create_ah(pd, attr);
+       vah = rdma_create_ah(pd, attr);
        if (IS_ERR(vah)) {
                kfree(ah);
                ah = (struct ipoib_ah *)vah;
index 4f0b74bf6dc83d4ceb937ca8850ef94e0b5b6c3f..f6c11f615df90031171e43325632ecfcba203ba5 100644 (file)
@@ -772,7 +772,7 @@ void opa_vnic_vema_send_trap(struct opa_vnic_adapter *adapter,
        }
 
        ah_attr.dlid = trap_lid;
-       ah = ib_create_ah(port->mad_agent->qp->pd, &ah_attr);
+       ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr);
        if (IS_ERR(ah)) {
                c_err("%s:Couldn't create new AH = %p\n", __func__, ah);
                c_err("%s:dlid = %d, sl = %d, port = %d\n", __func__,
index ed9f19817db85ea957e2039e5e37018e7539bccf..d65812147602dd76db016e688a0d4d5a1691a3c4 100644 (file)
@@ -2720,14 +2720,14 @@ struct ib_pd *__ib_alloc_pd(struct ib_device *device, unsigned int flags,
 void ib_dealloc_pd(struct ib_pd *pd);
 
 /**
- * ib_create_ah - Creates an address handle for the given address vector.
+ * rdma_create_ah - Creates an address handle for the given address vector.
  * @pd: The protection domain associated with the address handle.
  * @ah_attr: The attributes of the address vector.
  *
  * The address handle is used to reference a local or global destination
  * in all UD QP post sends.
  */
-struct ib_ah *ib_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr);
+struct ib_ah *rdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr);
 
 /**
  * ib_get_gids_from_rdma_hdr - Get sgid and dgid from GRH or IPv4 header