]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
RDMA/cxgb3,cxgb4: Remove dead code
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 11 Jan 2011 01:41:43 +0000 (17:41 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Jan 2011 01:41:43 +0000 (17:41 -0800)
This removes unused code found by running 'make namespacecheck';
compile tested only.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/cxio_hal.c
drivers/infiniband/hw/cxgb3/iwch_provider.h
drivers/infiniband/hw/cxgb3/iwch_qp.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/qp.c

index 09dda0b8740eac9ee1a6d50ed536dec3a709a37d..c3f5aca4ef00672f8522548afa89d60d85534d71 100644 (file)
@@ -189,6 +189,7 @@ int cxio_create_cq(struct cxio_rdev *rdev_p, struct t3_cq *cq, int kernel)
        return (rdev_p->t3cdev_p->ctl(rdev_p->t3cdev_p, RDMA_CQ_SETUP, &setup));
 }
 
+#ifdef notyet
 int cxio_resize_cq(struct cxio_rdev *rdev_p, struct t3_cq *cq)
 {
        struct rdma_cq_setup setup;
@@ -200,6 +201,7 @@ int cxio_resize_cq(struct cxio_rdev *rdev_p, struct t3_cq *cq)
        setup.ovfl_mode = 1;
        return (rdev_p->t3cdev_p->ctl(rdev_p->t3cdev_p, RDMA_CQ_SETUP, &setup));
 }
+#endif
 
 static u32 get_qpid(struct cxio_rdev *rdev_p, struct cxio_ucontext *uctx)
 {
index a237d49bdcc9d79e1e25fa097190e25ee9d87599..c5406da3f4cd2d28dc02e7480d6a4c224516095c 100644 (file)
@@ -335,8 +335,6 @@ int iwch_post_terminate(struct iwch_qp *qhp, struct respQ_msg_t *rsp_msg);
 int iwch_post_zb_read(struct iwch_qp *qhp);
 int iwch_register_device(struct iwch_dev *dev);
 void iwch_unregister_device(struct iwch_dev *dev);
-int iwch_quiesce_qps(struct iwch_cq *chp);
-int iwch_resume_qps(struct iwch_cq *chp);
 void stop_read_rep_timer(struct iwch_qp *qhp);
 int iwch_register_mem(struct iwch_dev *rhp, struct iwch_pd *php,
                      struct iwch_mr *mhp, int shift);
index 0993137181d7a893d6084688f003ca05358d3b42..1b4cd09f74dc2517567d8595fdd416c13ddd4941 100644 (file)
@@ -1149,59 +1149,3 @@ out:
        PDBG("%s exit state %d\n", __func__, qhp->attr.state);
        return ret;
 }
-
-static int quiesce_qp(struct iwch_qp *qhp)
-{
-       spin_lock_irq(&qhp->lock);
-       iwch_quiesce_tid(qhp->ep);
-       qhp->flags |= QP_QUIESCED;
-       spin_unlock_irq(&qhp->lock);
-       return 0;
-}
-
-static int resume_qp(struct iwch_qp *qhp)
-{
-       spin_lock_irq(&qhp->lock);
-       iwch_resume_tid(qhp->ep);
-       qhp->flags &= ~QP_QUIESCED;
-       spin_unlock_irq(&qhp->lock);
-       return 0;
-}
-
-int iwch_quiesce_qps(struct iwch_cq *chp)
-{
-       int i;
-       struct iwch_qp *qhp;
-
-       for (i=0; i < T3_MAX_NUM_QP; i++) {
-               qhp = get_qhp(chp->rhp, i);
-               if (!qhp)
-                       continue;
-               if ((qhp->attr.rcq == chp->cq.cqid) && !qp_quiesced(qhp)) {
-                       quiesce_qp(qhp);
-                       continue;
-               }
-               if ((qhp->attr.scq == chp->cq.cqid) && !qp_quiesced(qhp))
-                       quiesce_qp(qhp);
-       }
-       return 0;
-}
-
-int iwch_resume_qps(struct iwch_cq *chp)
-{
-       int i;
-       struct iwch_qp *qhp;
-
-       for (i=0; i < T3_MAX_NUM_QP; i++) {
-               qhp = get_qhp(chp->rhp, i);
-               if (!qhp)
-                       continue;
-               if ((qhp->attr.rcq == chp->cq.cqid) && qp_quiesced(qhp)) {
-                       resume_qp(qhp);
-                       continue;
-               }
-               if ((qhp->attr.scq == chp->cq.cqid) && qp_quiesced(qhp))
-                       resume_qp(qhp);
-       }
-       return 0;
-}
index 16032cdb433779656f438b519a582bb710638c98..cc600c2dd0b34d24e90d602606c964c89c05e1a0 100644 (file)
@@ -760,7 +760,6 @@ int c4iw_flush_rq(struct t4_wq *wq, struct t4_cq *cq, int count);
 int c4iw_flush_sq(struct t4_wq *wq, struct t4_cq *cq, int count);
 int c4iw_ev_handler(struct c4iw_dev *rnicp, u32 qid);
 u16 c4iw_rqes_posted(struct c4iw_qp *qhp);
-int c4iw_post_zb_read(struct c4iw_qp *qhp);
 int c4iw_post_terminate(struct c4iw_qp *qhp, struct t4_cqe *err_cqe);
 u32 c4iw_get_cqid(struct c4iw_rdev *rdev, struct c4iw_dev_ucontext *uctx);
 void c4iw_put_cqid(struct c4iw_rdev *rdev, u32 qid,
index 057cb2505ea12ce00431ba3dd2f86fae59da12ea..565a0612a125c0f19d1a677968531dbc038c90ee 100644 (file)
@@ -892,36 +892,6 @@ static inline void build_term_codes(struct t4_cqe *err_cqe, u8 *layer_type,
        }
 }
 
-int c4iw_post_zb_read(struct c4iw_qp *qhp)
-{
-       union t4_wr *wqe;
-       struct sk_buff *skb;
-       u8 len16;
-
-       PDBG("%s enter\n", __func__);
-       skb = alloc_skb(40, GFP_KERNEL);
-       if (!skb) {
-               printk(KERN_ERR "%s cannot send zb_read!!\n", __func__);
-               return -ENOMEM;
-       }
-       set_wr_txq(skb, CPL_PRIORITY_DATA, qhp->ep->txq_idx);
-
-       wqe = (union t4_wr *)skb_put(skb, sizeof wqe->read);
-       memset(wqe, 0, sizeof wqe->read);
-       wqe->read.r2 = cpu_to_be64(0);
-       wqe->read.stag_sink = cpu_to_be32(1);
-       wqe->read.to_sink_hi = cpu_to_be32(0);
-       wqe->read.to_sink_lo = cpu_to_be32(1);
-       wqe->read.stag_src = cpu_to_be32(1);
-       wqe->read.plen = cpu_to_be32(0);
-       wqe->read.to_src_hi = cpu_to_be32(0);
-       wqe->read.to_src_lo = cpu_to_be32(1);
-       len16 = DIV_ROUND_UP(sizeof wqe->read, 16);
-       init_wr_hdr(wqe, 0, FW_RI_RDMA_READ_WR, FW_RI_COMPLETION_FLAG, len16);
-
-       return c4iw_ofld_send(&qhp->rhp->rdev, skb);
-}
-
 static void post_terminate(struct c4iw_qp *qhp, struct t4_cqe *err_cqe,
                           gfp_t gfp)
 {