On Tue, 2013-04-02 at 23:09 +0300, Or Gerlitz wrote: > On Sat, Mar 23, 2013 at 1:55 AM, Nicholas A. Bellinger > <nab@xxxxxxxxxxxxxxx> wrote: > [...] > > +static void > > +isert_qp_event_callback(struct ib_event *e, void *context) > > +{ > > + struct isert_conn *isert_conn = (struct isert_conn *)context; > > + > > + pr_err("isert_qp_event_callback event: %d\n", e->event); > > + switch (e->event) { > > + case IB_EVENT_COMM_EST: > > + rdma_notify(isert_conn->conn_cm_id, IB_EVENT_COMM_EST); > > + break; > > + default: > > + break; > > + } > > +} > [...] > > +static void > > +isert_cq_event_callback(struct ib_event *e, void *context) > > +{ > > + pr_debug("isert_cq_event_callback event: %d\n", e->event); > > + > > + switch (e->event) { > > + case IB_EVENT_QP_LAST_WQE_REACHED: > > + pr_warn("Reached TX IB_EVENT_QP_LAST_WQE_REACHED:\n"); > > + break; > > + default: > > + pr_warn("Unknown e->event; %d\n", e->event); > > + break; > > + } > > +} > > This is QP not CQ event, move the case for it to QP event hander > isert_qp_event_callback Done. Thanks Or! -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html