PerfectSwitch.cc (8485:7a9a7f2a3d46) | PerfectSwitch.cc (8608:02d7ac5fb855) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66{ 67 assert(in.size() == m_virtual_networks); 68 NodeID port = m_in.size(); 69 m_in.push_back(in); 70 71 for (int j = 0; j < m_virtual_networks; j++) { 72 m_in[port][j]->setConsumer(this); 73 string desc = csprintf("[Queue from port %s %s %s to PerfectSwitch]", | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66{ 67 assert(in.size() == m_virtual_networks); 68 NodeID port = m_in.size(); 69 m_in.push_back(in); 70 71 for (int j = 0; j < m_virtual_networks; j++) { 72 m_in[port][j]->setConsumer(this); 73 string desc = csprintf("[Queue from port %s %s %s to PerfectSwitch]", |
74 NodeIDToString(m_switch_id), NodeIDToString(port), 75 NodeIDToString(j)); | 74 to_string(m_switch_id), to_string(port), to_string(j)); |
76 m_in[port][j]->setDescription(desc); 77 m_in[port][j]->setIncomingLink(port); 78 m_in[port][j]->setVnet(j); 79 } 80} 81 82void 83PerfectSwitch::addOutPort(const vector<MessageBuffer*>& out, --- 263 unchanged lines hidden --- | 75 m_in[port][j]->setDescription(desc); 76 m_in[port][j]->setIncomingLink(port); 77 m_in[port][j]->setVnet(j); 78 } 79} 80 81void 82PerfectSwitch::addOutPort(const vector<MessageBuffer*>& out, --- 263 unchanged lines hidden --- |