src/mem/ruby/network/garnet/NetworkInterface.cc
/*
 * This function returns the outport which supports the given vnet.
 * Currently, HeteroGarnet does not support multiple outports to
 * support same vnet. Thus, this function returns the first-and
 * only outport which supports the vnet.
 */
This function returns the outport which supports the given vnet.
Currently, HeteroGarnet does not support multiple outports to
support same vnet. Thus, this function returns the first-and
only outport which supports the vnet.
This function returns the outport which supports the given vnet . Currently HeteroGarnet does not support multiple outports to support same vnet . Thus this function returns the first - and only outport which supports the vnet .
NetworkInterface::OutputPort *
NetworkInterface::getOutportForVnet(int vnet)
{
    for (auto &oPort : outPorts) {
        if (oPort->isVnetSupported(vnet)) {
            return oPort;
        }
    }
    return nullptr;
}
NetworkInterface :: OutputPort * NetworkInterface :: getOutportForVnet ( int vnet ) { for ( auto & oPort : outPorts ) { if ( oPort -> isVnetSupported ( vnet ) ) { return oPort ; } } return nullptr ; }
This function returns the outport which supports the given vnet.
This function returns the outport which supports the given vnet .