bridge.cc (5494:85c8d296c1cb) | bridge.cc (5562:875cb7d09831) |
---|---|
1 2/* 3 * Copyright (c) 2006 The Regents of The University of Michigan 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 --- 116 unchanged lines hidden (view full) --- 125 otherPort->outstandingResponses); 126 127 if (pkt->isRequest() && otherPort->reqQueueFull()) { 128 DPRINTF(BusBridge, "Remote queue full, nacking\n"); 129 nackRequest(pkt); 130 return true; 131 } 132 | 1 2/* 3 * Copyright (c) 2006 The Regents of The University of Michigan 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 --- 116 unchanged lines hidden (view full) --- 125 otherPort->outstandingResponses); 126 127 if (pkt->isRequest() && otherPort->reqQueueFull()) { 128 DPRINTF(BusBridge, "Remote queue full, nacking\n"); 129 nackRequest(pkt); 130 return true; 131 } 132 |
133 if (pkt->needsResponse()) | 133 if (pkt->needsResponse()) { |
134 if (respQueueFull()) { 135 DPRINTF(BusBridge, "Local queue full, no space for response, nacking\n"); 136 DPRINTF(BusBridge, "queue size: %d outreq: %d outstanding resp: %d\n", 137 sendQueue.size(), queuedRequests, outstandingResponses); 138 nackRequest(pkt); 139 return true; 140 } else { 141 DPRINTF(BusBridge, "Request Needs response, reserving space\n"); 142 ++outstandingResponses; 143 } | 134 if (respQueueFull()) { 135 DPRINTF(BusBridge, "Local queue full, no space for response, nacking\n"); 136 DPRINTF(BusBridge, "queue size: %d outreq: %d outstanding resp: %d\n", 137 sendQueue.size(), queuedRequests, outstandingResponses); 138 nackRequest(pkt); 139 return true; 140 } else { 141 DPRINTF(BusBridge, "Request Needs response, reserving space\n"); 142 ++outstandingResponses; 143 } |
144 } |
|
144 145 otherPort->queueForSendTiming(pkt); 146 147 return true; 148} 149 150void 151Bridge::BridgePort::nackRequest(PacketPtr pkt) --- 205 unchanged lines hidden --- | 145 146 otherPort->queueForSendTiming(pkt); 147 148 return true; 149} 150 151void 152Bridge::BridgePort::nackRequest(PacketPtr pkt) --- 205 unchanged lines hidden --- |