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; --- 143 unchanged lines hidden (view full) --- 152 network_message_to_size(net_msg_ptr); 153 154 DPRINTF(RubyNetwork, "throttle: %d my bw %d bw spent " 155 "enqueueing net msg %d time: %lld.\n", 156 m_node, getLinkBandwidth(), m_units_remaining[vnet], 157 g_system_ptr->curCycle()); 158 159 // Move the message |
160 m_in[vnet]->dequeue(); |
161 m_out[vnet]->enqueue(msg_ptr, m_link_latency); |
162 163 // Count the message 164 m_msg_counts[net_msg_ptr->getMessageSize()][vnet]++; 165 166 DPRINTF(RubyNetwork, "%s\n", *m_out[vnet]); 167 } 168 169 // Calculate the amount of bandwidth we spent on this message --- 97 unchanged lines hidden --- |