public abstract void dispatchCqEvent(C endpoint, IbvWC wc) throws IOException;
@Override public void dispatchCqEvent(IbvWC wc) throws IOException { if (wc.getStatus() == 0){ RdmaActiveFuture future = futureMap.remove(wc.getWr_id()); if (future != null){ future.signal(); if (future.isWrite()){ sendQueueAvailable.release(2); } else { sendQueueAvailable.release(); } } else { throw new IOException("cannot find future object for wrid " + wc.getWr_id() + ", status " + wc.getStatus() + ", opcount " + opcount + ", wc.qpnum " + wc.getQp_num() + ", this.qp.num " + this.qp.getQp_num() + ", connstate " + this.getConnState() + ", futureMap.size " + futureMap.size()); } } else if (wc.getStatus() == 5){ } else { throw new IOException("error in wc, status " + wc.getStatus()); } }
private void dispatchCqEvent(IbvWC wc) throws IOException { if (wc.getStatus() == 5){ // logger.info("flush wc"); } else if (wc.getStatus() != 0){ LOG.info("faulty request, status " + wc.getStatus()); } else { RdmaPassiveFuture future = futureMap.remove(wc.getWr_id()); if (future != null){ future.signal(wc.getStatus()); if (future.isWrite()){ sendQueueAvailable.release(2); } else { sendQueueAvailable.release(); } } else { throw new IOException("cannot find future object for wrid " + wc.getWr_id() + ", status " + wc.getStatus() + ", opcount " + opcount + ", ep " + this.getEndpointId() + ", wc.qpnum " + wc.getQp_num() + ", this.qp.num " + this.qp.getQp_num() + ", connstate " + this.getConnState() + ", futureMap.size " + futureMap.size()); } } }