public RdmaCqProvider createCqProvider(C endpoint) throws IOException { logger.info("setting up cq processor"); return new RdmaCqProvider(endpoint.getIdPriv().getVerbs(), cqSize); }
public synchronized IbvPd createProtectionDomain(RdmaEndpoint endpoint) throws IOException { IbvContext context = endpoint.getIdPriv().getVerbs(); return createProtectionDomain(context); }
public synchronized IbvPd createProtectionDomain(RdmaServerEndpoint<?> endpoint) throws IOException { IbvContext context = endpoint.getIdPriv().getVerbs(); return createProtectionDomain(context); }
void close(RdmaEndpoint endpoint) throws IOException { IbvContext context = endpoint.getIdPriv().getVerbs(); RdmaActiveCqProcessor<C> cqProcessor = cqMap.get(context.getCmd_fd()); cqProcessor.unregister(endpoint); }
protected synchronized DaRPCCluster<R,T> lookupCqProcessor(DaRPCServerEndpoint<R,T> endpoint) throws IOException{ IbvContext context = endpoint.getIdPriv().getVerbs(); if (context == null) { throw new IOException("setting up cq processor, no context found"); } DaRPCInstance<R,T> rpcInstance = null; int key = context.getCmd_fd(); if (!deviceInstance.containsKey(key)) { return null; } else { rpcInstance = deviceInstance.get(context.getCmd_fd()); DaRPCCluster<R,T> cqProcessor = rpcInstance.getProcessor(endpoint.clusterId()); return cqProcessor; } }
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"); } }
@Override public IbvContext getVerbs() throws IOException { if (verbs == null){ if (!isOpen()) { throw new IOException("Trying to get context on closed ID"); } long _obj_id = nativeDispatcher._getContext(objId); if (_obj_id >= 0){ NatIbvContext context = new NatIbvContext(_obj_id, nativeDispatcher); setVerbs(context); } } return super.getVerbs(); }
@Override public RdmaCqProvider createCqProvider(DaRPCClientEndpoint<R, T> endpoint) throws IOException { return new RdmaCqProvider(endpoint.getIdPriv().getVerbs(), recvQueueSize() + sendQueueSize()); }
public RdmaCqProvider createCqProvider(DaRPCServerEndpoint<R,T> endpoint) throws IOException { logger.info("setting up cq processor (multicore)"); IbvContext context = endpoint.getIdPriv().getVerbs(); if (context == null) { throw new IOException("setting up cq processor, no context found"); } DaRPCInstance<R,T> rpcInstance = null; int key = context.getCmd_fd(); if (!deviceInstance.containsKey(key)) { int cqSize = (this.recvQueueSize() + this.sendQueueSize())*clusterSize; rpcInstance = new DaRPCInstance<R,T>(context, cqSize, this.pollSize, computeAffinities, this.getTimeout(), polling); deviceInstance.put(context.getCmd_fd(), rpcInstance); } rpcInstance = deviceInstance.get(context.getCmd_fd()); DaRPCCluster<R,T> cqProcessor = rpcInstance.getProcessor(endpoint.clusterId()); return cqProcessor; }
public IbvQP createQpProvider(C endpoint) throws IOException{ IbvContext context = endpoint.getIdPriv().getVerbs(); RdmaActiveCqProcessor<C> cqProcessor = cqMap.get(context.getCmd_fd()); IbvCQ cq = cqProcessor.getCQ(); IbvQPInitAttr attr = new IbvQPInitAttr(); attr.cap().setMax_recv_sge(maxSge); attr.cap().setMax_recv_wr(maxWR); attr.cap().setMax_send_sge(maxSge); attr.cap().setMax_send_wr(maxWR); attr.setQp_type(IbvQP.IBV_QPT_RC); attr.setRecv_cq(cq); attr.setSend_cq(cq); IbvQP qp = endpoint.getIdPriv().createQP(endpoint.getPd(), attr); logger.info("registering endpoint with cq"); cqProcessor.registerQP(qp.getQp_num(), endpoint); return qp; }
IbvContext context = connId.getVerbs(); if (context == null){ System.out.println("VerbsServer::context null");
IbvContext context = idPriv.getVerbs();