iw_cxgb4: add queue drain functions
[linux-2.6-block.git] / drivers / infiniband / hw / cxgb4 / iw_cxgb4.h
index fb2de75a039216e2f732a8f61ba387de121f1ce7..7c6a6e1a2c1db2c9f850357fb4d66b3436d0fa13 100644 (file)
@@ -476,6 +476,8 @@ struct c4iw_qp {
        wait_queue_head_t wait;
        struct timer_list timer;
        int sq_sig_all;
+       struct completion rq_drained;
+       struct completion sq_drained;
 };
 
 static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp)
@@ -1016,6 +1018,8 @@ extern int c4iw_wr_log;
 extern int db_fc_threshold;
 extern int db_coalescing_threshold;
 extern int use_dsgl;
+void c4iw_drain_rq(struct ib_qp *qp);
+void c4iw_drain_sq(struct ib_qp *qp);
 
 
 #endif