public RdmaCqProvider createCqProvider(C endpoint) throws IOException { logger.info("setting up cq processor"); IbvContext context = endpoint.getIdPriv().getVerbs(); if (context != null) { logger.info("setting up cq processor, context found"); RdmaActiveCqProcessor<C> cqProcessor = null; int key = context.getCmd_fd(); if (!cqMap.containsKey(key)) { cqProcessor = new RdmaActiveCqProcessor<C>(context, cqSize, maxWR, 0, 1, timeout, polling); cqMap.put(context.getCmd_fd(), cqProcessor); cqProcessor.start(); } cqProcessor = cqMap.get(context.getCmd_fd()); return cqProcessor; } else { throw new IOException("setting up cq processor, no context found"); } }