PerfectSwitch.cc (6285:ce086eca1ede) | PerfectSwitch.cc (6288:083a6806dd96) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 120 unchanged lines hidden (view full) --- 129 130 MsgPtr msg_ptr; 131 132 // Give the highest numbered link priority most of the time 133 m_wakeups_wo_switch++; 134 int highest_prio_vnet = m_virtual_networks-1; 135 int lowest_prio_vnet = 0; 136 int decrementer = 1; | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 120 unchanged lines hidden (view full) --- 129 130 MsgPtr msg_ptr; 131 132 // Give the highest numbered link priority most of the time 133 m_wakeups_wo_switch++; 134 int highest_prio_vnet = m_virtual_networks-1; 135 int lowest_prio_vnet = 0; 136 int decrementer = 1; |
137 bool schedule_wakeup = false; | |
138 NetworkMessage* net_msg_ptr = NULL; 139 140 // invert priorities to avoid starvation seen in the component network 141 if (m_wakeups_wo_switch > PRIORITY_SWITCH_LIMIT) { 142 m_wakeups_wo_switch = 0; 143 highest_prio_vnet = 0; 144 lowest_prio_vnet = m_virtual_networks-1; 145 decrementer = -1; --- 175 unchanged lines hidden --- | 137 NetworkMessage* net_msg_ptr = NULL; 138 139 // invert priorities to avoid starvation seen in the component network 140 if (m_wakeups_wo_switch > PRIORITY_SWITCH_LIMIT) { 141 m_wakeups_wo_switch = 0; 142 highest_prio_vnet = 0; 143 lowest_prio_vnet = m_virtual_networks-1; 144 decrementer = -1; --- 175 unchanged lines hidden --- |