PerfectSwitch.cc (10074:0e013fa647ac) | PerfectSwitch.cc (10226:056363356d15) |
---|---|
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; --- 246 unchanged lines hidden (view full) --- 255 // unmodified MsgPtr because the MessageBuffer 256 // enqueue func will modify the message 257 258 // This magic line creates a private copy of the 259 // message 260 unmodified_msg_ptr = msg_ptr->clone(); 261 } 262 | 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; --- 246 unchanged lines hidden (view full) --- 255 // unmodified MsgPtr because the MessageBuffer 256 // enqueue func will modify the message 257 258 // This magic line creates a private copy of the 259 // message 260 unmodified_msg_ptr = msg_ptr->clone(); 261 } 262 |
263 // Dequeue msg 264 m_in[incoming][vnet]->dequeue(); 265 m_pending_message_count[vnet]--; 266 |
|
263 // Enqueue it - for all outgoing queues 264 for (int i=0; i<output_links.size(); i++) { 265 int outgoing = output_links[i]; 266 267 if (i > 0) { 268 // create a private copy of the unmodified 269 // message 270 msg_ptr = unmodified_msg_ptr->clone(); --- 8 unchanged lines hidden (view full) --- 279 280 // Enqeue msg 281 DPRINTF(RubyNetwork, "Enqueuing net msg from " 282 "inport[%d][%d] to outport [%d][%d].\n", 283 incoming, vnet, outgoing, vnet); 284 285 m_out[outgoing][vnet]->enqueue(msg_ptr); 286 } | 267 // Enqueue it - for all outgoing queues 268 for (int i=0; i<output_links.size(); i++) { 269 int outgoing = output_links[i]; 270 271 if (i > 0) { 272 // create a private copy of the unmodified 273 // message 274 msg_ptr = unmodified_msg_ptr->clone(); --- 8 unchanged lines hidden (view full) --- 283 284 // Enqeue msg 285 DPRINTF(RubyNetwork, "Enqueuing net msg from " 286 "inport[%d][%d] to outport [%d][%d].\n", 287 incoming, vnet, outgoing, vnet); 288 289 m_out[outgoing][vnet]->enqueue(msg_ptr); 290 } |
287 288 // Dequeue msg 289 m_in[incoming][vnet]->dequeue(); 290 m_pending_message_count[vnet]--; | |
291 } 292 } 293 } 294 } 295} 296 297void 298PerfectSwitch::storeEventInfo(int info) --- 19 unchanged lines hidden --- | 291 } 292 } 293 } 294 } 295} 296 297void 298PerfectSwitch::storeEventInfo(int info) --- 19 unchanged lines hidden --- |