PerfectSwitch.cc (8232:b28d06a175be) PerfectSwitch.cc (8266:66a3187a6714)
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;

--- 288 unchanged lines hidden (view full) ---

297 // message so it knows which destinations this
298 // link is responsible for.
299 net_msg_ptr = safe_cast<NetworkMessage*>(msg_ptr.get());
300 net_msg_ptr->getInternalDestination() =
301 output_link_destinations[i];
302
303 // Enqeue msg
304 DPRINTF(RubyNetwork, "Enqueuing net msg from "
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;

--- 288 unchanged lines hidden (view full) ---

297 // message so it knows which destinations this
298 // link is responsible for.
299 net_msg_ptr = safe_cast<NetworkMessage*>(msg_ptr.get());
300 net_msg_ptr->getInternalDestination() =
301 output_link_destinations[i];
302
303 // Enqeue msg
304 DPRINTF(RubyNetwork, "Enqueuing net msg from "
305 "inport[%d][%d] to outport [%d][%d] time: %lld.\n",
306 incoming, vnet, outgoing, vnet,
307 g_eventQueue_ptr->getTime());
305 "inport[%d][%d] to outport [%d][%d].\n",
306 incoming, vnet, outgoing, vnet);
308
309 m_out[outgoing][vnet]->enqueue(msg_ptr);
310 }
311
312 // Dequeue msg
313 m_in[incoming][vnet]->pop();
314 m_pending_message_count[vnet]--;
315 }

--- 33 unchanged lines hidden ---
307
308 m_out[outgoing][vnet]->enqueue(msg_ptr);
309 }
310
311 // Dequeue msg
312 m_in[incoming][vnet]->pop();
313 m_pending_message_count[vnet]--;
314 }

--- 33 unchanged lines hidden ---