1
0
Fork 0

IB/core: Rename ib_create_ah to rdma_create_ah

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>
hifive-unleashed-5.1
Dasaratharaman Chandramouli 2017-04-29 14:41:19 -04:00 committed by Doug Ledford
parent 90898850ec
commit 0a18cfe4f6
11 changed files with 18 additions and 18 deletions

View File

@ -343,7 +343,7 @@ static int cm_alloc_msg(struct cm_id_private *cm_id_priv,
ret = -ENODEV; ret = -ENODEV;
goto out; 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)) { if (IS_ERR(ah)) {
ret = PTR_ERR(ah); ret = PTR_ERR(ah);
goto out; goto out;

View File

@ -2043,7 +2043,7 @@ static void update_sm_ah(struct work_struct *work)
cpu_to_be64(IB_SA_WELL_KNOWN_GUID); 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)) { if (IS_ERR(new_ah->ah)) {
pr_warn("Couldn't create new SM AH\n"); pr_warn("Couldn't create new SM AH\n");
kfree(new_ah); kfree(new_ah);

View 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_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)) { if (IS_ERR(ah)) {
ret = PTR_ERR(ah); ret = PTR_ERR(ah);
goto err_up; goto err_up;

View File

@ -311,7 +311,7 @@ EXPORT_SYMBOL(ib_dealloc_pd);
/* Address handles */ /* 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; 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; return ah;
} }
EXPORT_SYMBOL(ib_create_ah); EXPORT_SYMBOL(rdma_create_ah);
int ib_get_rdma_header_version(const union rdma_network_hdr *hdr) 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) if (ret)
return ERR_PTR(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); EXPORT_SYMBOL(ib_create_ah_from_wc);

View File

@ -1518,7 +1518,7 @@ struct ib_ah *hfi1_create_qp0_ah(struct hfi1_ibport *ibp, u16 dlid)
rcu_read_lock(); rcu_read_lock();
qp0 = rcu_dereference(ibp->rvp.qp[0]); qp0 = rcu_dereference(ibp->rvp.qp[0]);
if (qp0) if (qp0)
ah = ib_create_ah(qp0->ibqp.pd, &attr); ah = rdma_create_ah(qp0->ibqp.pd, &attr);
rcu_read_unlock(); rcu_read_unlock();
return ah; return ah;
} }

View 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.sl = sl;
ah_attr.port_num = port_num; ah_attr.port_num = port_num;
new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
&ah_attr); &ah_attr);
if (IS_ERR(new_ah)) if (IS_ERR(new_ah))
return; return;
@ -563,7 +563,7 @@ int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port,
return -EINVAL; return -EINVAL;
attr.ah_flags = IB_AH_GRH; 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)) if (IS_ERR(ah))
return -ENOMEM; return -ENOMEM;
@ -1391,7 +1391,7 @@ int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port,
/* create ah */ /* create ah */
sgid_index = attr->grh.sgid_index; sgid_index = attr->grh.sgid_index;
attr->grh.sgid_index = 0; 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)) if (IS_ERR(ah))
return -ENOMEM; return -ENOMEM;
attr->grh.sgid_index = sgid_index; attr->grh.sgid_index = sgid_index;

View File

@ -86,8 +86,8 @@ static void update_sm_ah(struct mthca_dev *dev,
ah_attr.sl = sl; ah_attr.sl = sl;
ah_attr.port_num = port_num; ah_attr.port_num = port_num;
new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, new_ah = rdma_create_ah(dev->send_agent[port_num - 1][0]->qp->pd,
&ah_attr); &ah_attr);
if (IS_ERR(new_ah)) if (IS_ERR(new_ah))
return; return;

View File

@ -1374,7 +1374,7 @@ struct ib_ah *qib_create_qp0_ah(struct qib_ibport *ibp, u16 dlid)
rcu_read_lock(); rcu_read_lock();
qp0 = rcu_dereference(ibp->rvp.qp[0]); qp0 = rcu_dereference(ibp->rvp.qp[0]);
if (qp0) if (qp0)
ah = ib_create_ah(qp0->ibqp.pd, &attr); ah = rdma_create_ah(qp0->ibqp.pd, &attr);
rcu_read_unlock(); rcu_read_unlock();
return ah; return ah;
} }

View File

@ -65,7 +65,7 @@ struct ipoib_ah *ipoib_create_ah(struct net_device *dev,
ah->last_send = 0; ah->last_send = 0;
kref_init(&ah->ref); kref_init(&ah->ref);
vah = ib_create_ah(pd, attr); vah = rdma_create_ah(pd, attr);
if (IS_ERR(vah)) { if (IS_ERR(vah)) {
kfree(ah); kfree(ah);
ah = (struct ipoib_ah *)vah; ah = (struct ipoib_ah *)vah;

View File

@ -772,7 +772,7 @@ void opa_vnic_vema_send_trap(struct opa_vnic_adapter *adapter,
} }
ah_attr.dlid = trap_lid; 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)) { if (IS_ERR(ah)) {
c_err("%s:Couldn't create new AH = %p\n", __func__, ah); c_err("%s:Couldn't create new AH = %p\n", __func__, ah);
c_err("%s:dlid = %d, sl = %d, port = %d\n", __func__, c_err("%s:dlid = %d, sl = %d, port = %d\n", __func__,

View 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); 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. * @pd: The protection domain associated with the address handle.
* @ah_attr: The attributes of the address vector. * @ah_attr: The attributes of the address vector.
* *
* The address handle is used to reference a local or global destination * The address handle is used to reference a local or global destination
* in all UD QP post sends. * 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 * ib_get_gids_from_rdma_hdr - Get sgid and dgid from GRH or IPv4 header