IB/core: Rename ib_destroy_ah to rdma_destroy_ah
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Sat, 29 Apr 2017 18:41:22 +0000 (14:41 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 1 May 2017 18:32:43 +0000 (14:32 -0400)
Rename ib_destroy_ah to rdma_destroy_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>
16 files changed:
drivers/infiniband/core/agent.c
drivers/infiniband/core/cm.c
drivers/infiniband/core/mad_rmpp.c
drivers/infiniband/core/sa_query.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types.c
drivers/infiniband/core/verbs.c
drivers/infiniband/hw/mlx4/mad.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/qib/qib_mad.c
drivers/infiniband/sw/rdmavt/mad.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c
drivers/infiniband/ulp/srpt/ib_srpt.c
include/rdma/ib_verbs.h

index 11dacd97a667f8eced716daab036c6062c0570e9..324ef85a13b6db1bea909cb7d0e896089ea41a4d 100644 (file)
@@ -137,13 +137,13 @@ void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *
 err2:
        ib_free_send_mad(send_buf);
 err1:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
 }
 
 static void agent_send_handler(struct ib_mad_agent *mad_agent,
                               struct ib_mad_send_wc *mad_send_wc)
 {
-       ib_destroy_ah(mad_send_wc->send_buf->ah);
+       rdma_destroy_ah(mad_send_wc->send_buf->ah);
        ib_free_send_mad(mad_send_wc->send_buf);
 }
 
index ac62dd898a5e529e939f098a8c3d62b23305418b..7d4db26d2de24fe0c866d3704b916f071581cfb8 100644 (file)
@@ -355,7 +355,7 @@ static int cm_alloc_msg(struct cm_id_private *cm_id_priv,
                               GFP_ATOMIC,
                               IB_MGMT_BASE_VERSION);
        if (IS_ERR(m)) {
-               ib_destroy_ah(ah);
+               rdma_destroy_ah(ah);
                ret = PTR_ERR(m);
                goto out;
        }
@@ -390,7 +390,7 @@ static int cm_alloc_response_msg(struct cm_port *port,
                               GFP_ATOMIC,
                               IB_MGMT_BASE_VERSION);
        if (IS_ERR(m)) {
-               ib_destroy_ah(ah);
+               rdma_destroy_ah(ah);
                return PTR_ERR(m);
        }
        m->ah = ah;
@@ -400,7 +400,7 @@ static int cm_alloc_response_msg(struct cm_port *port,
 
 static void cm_free_msg(struct ib_mad_send_buf *msg)
 {
-       ib_destroy_ah(msg->ah);
+       rdma_destroy_ah(msg->ah);
        if (msg->context[0])
                cm_deref_id(msg->context[0]);
        ib_free_send_mad(msg);
index 0e597c812579a233a2fef56c29b10c124459ed62..a64f8201387c887410460bf974767fd3b0c7f7d3 100644 (file)
@@ -81,7 +81,7 @@ static void destroy_rmpp_recv(struct mad_rmpp_recv *rmpp_recv)
 {
        deref_rmpp_recv(rmpp_recv);
        wait_for_completion(&rmpp_recv->comp);
-       ib_destroy_ah(rmpp_recv->ah);
+       rdma_destroy_ah(rmpp_recv->ah);
        kfree(rmpp_recv);
 }
 
@@ -171,7 +171,7 @@ static struct ib_mad_send_buf *alloc_response_msg(struct ib_mad_agent *agent,
                                 hdr_len, 0, GFP_KERNEL,
                                 IB_MGMT_BASE_VERSION);
        if (IS_ERR(msg))
-               ib_destroy_ah(ah);
+               rdma_destroy_ah(ah);
        else {
                msg->ah = ah;
                msg->context[0] = ah;
@@ -201,7 +201,7 @@ static void ack_ds_ack(struct ib_mad_agent_private *agent,
 
        ret = ib_post_send_mad(msg, NULL);
        if (ret) {
-               ib_destroy_ah(msg->ah);
+               rdma_destroy_ah(msg->ah);
                ib_free_send_mad(msg);
        }
 }
@@ -209,7 +209,7 @@ static void ack_ds_ack(struct ib_mad_agent_private *agent,
 void ib_rmpp_send_handler(struct ib_mad_send_wc *mad_send_wc)
 {
        if (mad_send_wc->send_buf->context[0] == mad_send_wc->send_buf->ah)
-               ib_destroy_ah(mad_send_wc->send_buf->ah);
+               rdma_destroy_ah(mad_send_wc->send_buf->ah);
        ib_free_send_mad(mad_send_wc->send_buf);
 }
 
@@ -237,7 +237,7 @@ static void nack_recv(struct ib_mad_agent_private *agent,
 
        ret = ib_post_send_mad(msg, NULL);
        if (ret) {
-               ib_destroy_ah(msg->ah);
+               rdma_destroy_ah(msg->ah);
                ib_free_send_mad(msg);
        }
 }
index e998d6baaeff842bc13b3e7256964d8a6b771305..9c11f90a2c6da1959b807bc954aff699abf86ef6 100644 (file)
@@ -1027,7 +1027,7 @@ static void free_sm_ah(struct kref *kref)
 {
        struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref);
 
-       ib_destroy_ah(sm_ah->ah);
+       rdma_destroy_ah(sm_ah->ah);
        kfree(sm_ah);
 }
 
index 3ac6f9740a0ea7352ecaf05507668a544e1fd464..c699a7de512d63079a0cdf0d66ac7b8bf36dc12a 100644 (file)
@@ -197,7 +197,7 @@ static void send_handler(struct ib_mad_agent *agent,
        struct ib_umad_packet *packet = send_wc->send_buf->context[0];
 
        dequeue_send(file, packet);
-       ib_destroy_ah(packet->msg->ah);
+       rdma_destroy_ah(packet->msg->ah);
        ib_free_send_mad(packet->msg);
 
        if (send_wc->status == IB_WC_RESP_TIMEOUT_ERR) {
@@ -596,7 +596,7 @@ err_send:
 err_msg:
        ib_free_send_mad(packet->msg);
 err_ah:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
 err_up:
        mutex_unlock(&file->mutex);
 err:
index 6e9bdcd217fc9f683023d112ecfe26f562b55928..bfdd3d8d8b0109adb7227f2490bea8ba65a2e6a7 100644 (file)
@@ -2588,7 +2588,7 @@ ssize_t ib_uverbs_create_ah(struct ib_uverbs_file *file,
        return in_len;
 
 err_copy:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
 
 err_put:
        uobj_put_obj_read(pd);
index ad3caad409454878136f3db599e219e12bae1fc4..ef293379f37a30782faa907706732d402a3bcdb0 100644 (file)
@@ -41,7 +41,7 @@
 static int uverbs_free_ah(struct ib_uobject *uobject,
                          enum rdma_remove_reason why)
 {
-       return ib_destroy_ah((struct ib_ah *)uobject->object);
+       return rdma_destroy_ah((struct ib_ah *)uobject->object);
 }
 
 static int uverbs_free_flow(struct ib_uobject *uobject,
index 35efff65f340d8c2f5a3cd738e9a9ae89a4dab68..a517a469c7d1faa191460e7bfbb31d14338ec337 100644 (file)
@@ -587,7 +587,7 @@ int rdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr)
 }
 EXPORT_SYMBOL(rdma_query_ah);
 
-int ib_destroy_ah(struct ib_ah *ah)
+int rdma_destroy_ah(struct ib_ah *ah)
 {
        struct ib_pd *pd;
        int ret;
@@ -599,7 +599,7 @@ int ib_destroy_ah(struct ib_ah *ah)
 
        return ret;
 }
-EXPORT_SYMBOL(ib_destroy_ah);
+EXPORT_SYMBOL(rdma_destroy_ah);
 
 /* Shared receive queues */
 
index 76010d02e2ab1b64d79590d7357de2ee01162bd2..90915c5e53389d0686e944f337c4de3e9fcc651c 100644 (file)
@@ -207,7 +207,7 @@ static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl)
 
        spin_lock_irqsave(&dev->sm_lock, flags);
        if (dev->sm_ah[port_num - 1])
-               ib_destroy_ah(dev->sm_ah[port_num - 1]);
+               rdma_destroy_ah(dev->sm_ah[port_num - 1]);
        dev->sm_ah[port_num - 1] = new_ah;
        spin_unlock_irqrestore(&dev->sm_lock, flags);
 }
@@ -580,7 +580,7 @@ int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port,
 
        tun_mad = (struct mlx4_rcv_tunnel_mad *) (tun_qp->tx_ring[tun_tx_ix].buf.addr);
        if (tun_qp->tx_ring[tun_tx_ix].ah)
-               ib_destroy_ah(tun_qp->tx_ring[tun_tx_ix].ah);
+               rdma_destroy_ah(tun_qp->tx_ring[tun_tx_ix].ah);
        tun_qp->tx_ring[tun_tx_ix].ah = ah;
        ib_dma_sync_single_for_cpu(&dev->ib_dev,
                                   tun_qp->tx_ring[tun_tx_ix].buf.map,
@@ -653,7 +653,7 @@ int mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port,
        spin_unlock(&tun_qp->tx_lock);
        tun_qp->tx_ring[tun_tx_ix].ah = NULL;
 end:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
        return ret;
 }
 
@@ -1018,7 +1018,7 @@ static void send_handler(struct ib_mad_agent *agent,
                         struct ib_mad_send_wc *mad_send_wc)
 {
        if (mad_send_wc->send_buf->context[0])
-               ib_destroy_ah(mad_send_wc->send_buf->context[0]);
+               rdma_destroy_ah(mad_send_wc->send_buf->context[0]);
        ib_free_send_mad(mad_send_wc->send_buf);
 }
 
@@ -1073,7 +1073,7 @@ void mlx4_ib_mad_cleanup(struct mlx4_ib_dev *dev)
                }
 
                if (dev->sm_ah[p])
-                       ib_destroy_ah(dev->sm_ah[p]);
+                       rdma_destroy_ah(dev->sm_ah[p]);
        }
 }
 
@@ -1410,7 +1410,7 @@ int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port,
 
        sqp_mad = (struct mlx4_mad_snd_buf *) (sqp->tx_ring[wire_tx_ix].buf.addr);
        if (sqp->tx_ring[wire_tx_ix].ah)
-               ib_destroy_ah(sqp->tx_ring[wire_tx_ix].ah);
+               rdma_destroy_ah(sqp->tx_ring[wire_tx_ix].ah);
        sqp->tx_ring[wire_tx_ix].ah = ah;
        ib_dma_sync_single_for_cpu(&dev->ib_dev,
                                   sqp->tx_ring[wire_tx_ix].buf.map,
@@ -1455,7 +1455,7 @@ int mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port,
        spin_unlock(&sqp->tx_lock);
        sqp->tx_ring[wire_tx_ix].ah = NULL;
 out:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
        return ret;
 }
 
@@ -1714,7 +1714,7 @@ static void mlx4_ib_free_pv_qp_bufs(struct mlx4_ib_demux_pv_ctx *ctx,
                                    tx_buf_size, DMA_TO_DEVICE);
                kfree(tun_qp->tx_ring[i].buf.addr);
                if (tun_qp->tx_ring[i].ah)
-                       ib_destroy_ah(tun_qp->tx_ring[i].ah);
+                       rdma_destroy_ah(tun_qp->tx_ring[i].ah);
        }
        kfree(tun_qp->tx_ring);
        kfree(tun_qp->ring);
@@ -1746,7 +1746,7 @@ static void mlx4_ib_tunnel_comp_worker(struct work_struct *work)
                                pr_debug("received tunnel send completion:"
                                         "wrid=0x%llx, status=0x%x\n",
                                         wc.wr_id, wc.status);
-                               ib_destroy_ah(tun_qp->tx_ring[wc.wr_id &
+                               rdma_destroy_ah(tun_qp->tx_ring[wc.wr_id &
                                              (MLX4_NUM_TUNNEL_BUFS - 1)].ah);
                                tun_qp->tx_ring[wc.wr_id & (MLX4_NUM_TUNNEL_BUFS - 1)].ah
                                        = NULL;
@@ -1763,7 +1763,7 @@ static void mlx4_ib_tunnel_comp_worker(struct work_struct *work)
                                 " status = %d, wrid = 0x%llx\n",
                                 ctx->slave, wc.status, wc.wr_id);
                        if (!MLX4_TUN_IS_RECV(wc.wr_id)) {
-                               ib_destroy_ah(tun_qp->tx_ring[wc.wr_id &
+                               rdma_destroy_ah(tun_qp->tx_ring[wc.wr_id &
                                              (MLX4_NUM_TUNNEL_BUFS - 1)].ah);
                                tun_qp->tx_ring[wc.wr_id & (MLX4_NUM_TUNNEL_BUFS - 1)].ah
                                        = NULL;
@@ -1900,7 +1900,7 @@ static void mlx4_ib_sqp_comp_worker(struct work_struct *work)
                if (wc.status == IB_WC_SUCCESS) {
                        switch (wc.opcode) {
                        case IB_WC_SEND:
-                               ib_destroy_ah(sqp->tx_ring[wc.wr_id &
+                               rdma_destroy_ah(sqp->tx_ring[wc.wr_id &
                                              (MLX4_NUM_TUNNEL_BUFS - 1)].ah);
                                sqp->tx_ring[wc.wr_id & (MLX4_NUM_TUNNEL_BUFS - 1)].ah
                                        = NULL;
@@ -1930,7 +1930,7 @@ static void mlx4_ib_sqp_comp_worker(struct work_struct *work)
                                 " status = %d, wrid = 0x%llx\n",
                                 ctx->slave, wc.status, wc.wr_id);
                        if (!MLX4_TUN_IS_RECV(wc.wr_id)) {
-                               ib_destroy_ah(sqp->tx_ring[wc.wr_id &
+                               rdma_destroy_ah(sqp->tx_ring[wc.wr_id &
                                              (MLX4_NUM_TUNNEL_BUFS - 1)].ah);
                                sqp->tx_ring[wc.wr_id & (MLX4_NUM_TUNNEL_BUFS - 1)].ah
                                        = NULL;
index 7f671a20649c8e96cec26532fd38b26493f6797f..6f2e448b49a5faa7a95d7c34a117f227a6227fa0 100644 (file)
@@ -93,7 +93,7 @@ static void update_sm_ah(struct mthca_dev *dev,
 
        spin_lock_irqsave(&dev->sm_lock, flags);
        if (dev->sm_ah[port_num - 1])
-               ib_destroy_ah(dev->sm_ah[port_num - 1]);
+               rdma_destroy_ah(dev->sm_ah[port_num - 1]);
        dev->sm_ah[port_num - 1] = new_ah;
        spin_unlock_irqrestore(&dev->sm_lock, flags);
 }
@@ -345,6 +345,6 @@ void mthca_free_agents(struct mthca_dev *dev)
                }
 
                if (dev->sm_ah[p])
-                       ib_destroy_ah(dev->sm_ah[p]);
+                       rdma_destroy_ah(dev->sm_ah[p]);
        }
 }
index d2ac29861af5b6ba42487c6ef3a6c92258713529..859361994665ebce4287c5f1e1274346b69142b2 100644 (file)
@@ -2500,5 +2500,5 @@ void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx)
                del_timer_sync(&dd->pport[port_idx].cong_stats.timer);
 
        if (dd->pport[port_idx].ibport_data.smi_ah)
-               ib_destroy_ah(&dd->pport[port_idx].ibport_data.smi_ah->ibah);
+               rdma_destroy_ah(&dd->pport[port_idx].ibport_data.smi_ah->ibah);
 }
index bba241faca61da6bff26a3a0ee87ea148a20564a..d6981dc04adb0e7ea53be2c145d73dbc8e4e276f 100644 (file)
@@ -160,7 +160,7 @@ void rvt_free_mad_agents(struct rvt_dev_info *rdi)
                        ib_unregister_mad_agent(agent);
                }
                if (rvp->sm_ah) {
-                       ib_destroy_ah(&rvp->sm_ah->ibah);
+                       rdma_destroy_ah(&rvp->sm_ah->ibah);
                        rvp->sm_ah = NULL;
                }
 
index e0ba6b08aa96eca179089d53c5872cefb3f3814c..0060b2f9f659d7ad1ee9a1767d0029dc8529ff4c 100644 (file)
@@ -658,7 +658,7 @@ static void __ipoib_reap_ah(struct net_device *dev)
        list_for_each_entry_safe(ah, tah, &priv->dead_ahs, list)
                if ((int) priv->tx_tail - (int) ah->last_send >= 0) {
                        list_del(&ah->list);
-                       ib_destroy_ah(ah->ah);
+                       rdma_destroy_ah(ah->ah);
                        kfree(ah);
                }
 
index f6c11f615df90031171e43325632ecfcba203ba5..ad2ecd2edf07815c737b075eccac8b34c53fac2b 100644 (file)
@@ -603,7 +603,7 @@ static void vema_set(struct opa_vnic_vema_port *port,
 static void vema_send(struct ib_mad_agent *mad_agent,
                      struct ib_mad_send_wc *mad_wc)
 {
-       ib_destroy_ah(mad_wc->send_buf->ah);
+       rdma_destroy_ah(mad_wc->send_buf->ah);
        ib_free_send_mad(mad_wc->send_buf);
 }
 
@@ -677,7 +677,7 @@ static void vema_recv(struct ib_mad_agent *mad_agent,
        ib_free_send_mad(rsp);
 
 err_rsp:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
 free_recv_mad:
        ib_free_recv_mad(mad_wc);
 }
@@ -842,7 +842,7 @@ void opa_vnic_vema_send_trap(struct opa_vnic_adapter *adapter,
        }
 
 err_sndbuf:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
 err_exit:
        v_err("Aborting trap\n");
 }
index 7e314c2f207162f51b8c1ab78c6f0367b9025321..7d6c199de2d6430b52f8d387786db6055525dbc6 100644 (file)
@@ -417,7 +417,7 @@ static void srpt_mgmt_method_get(struct srpt_port *sp, struct ib_mad *rq_mad,
 static void srpt_mad_send_handler(struct ib_mad_agent *mad_agent,
                                  struct ib_mad_send_wc *mad_wc)
 {
-       ib_destroy_ah(mad_wc->send_buf->ah);
+       rdma_destroy_ah(mad_wc->send_buf->ah);
        ib_free_send_mad(mad_wc->send_buf);
 }
 
@@ -481,7 +481,7 @@ static void srpt_mad_recv_handler(struct ib_mad_agent *mad_agent,
        ib_free_send_mad(rsp);
 
 err_rsp:
-       ib_destroy_ah(ah);
+       rdma_destroy_ah(ah);
 err:
        ib_free_recv_mad(mad_wc);
 }
index 16fd94026d497eac765056bf764d078342fd782e..ecaf9d50876c1c9599f1913379bcd74a10e19538 100644 (file)
@@ -2796,10 +2796,10 @@ int rdma_modify_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
 int rdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
 
 /**
- * ib_destroy_ah - Destroys an address handle.
+ * rdma_destroy_ah - Destroys an address handle.
  * @ah: The address handle to destroy.
  */
-int ib_destroy_ah(struct ib_ah *ah);
+int rdma_destroy_ah(struct ib_ah *ah);
 
 /**
  * ib_create_srq - Creates a SRQ associated with the specified protection