Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions simulation/src/point-to-point/model/qbb-net-device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -316,20 +316,6 @@ namespace ns3 {
m_traceDequeue(p, qIndex);
TransmitStart(p);
return;
}else{ //No queue can deliver any packet
NS_LOG_INFO("PAUSE prohibits send at node " << m_node->GetId());
if (m_node->GetNodeType() == 0 && m_qcnEnabled){ //nothing to send, possibly due to qcn flow control, if so reschedule sending
Time t = Simulator::GetMaximumSimulationTime();
for (uint32_t i = 0; i < m_rdmaEQ->GetFlowCount(); i++){
Ptr<RdmaQueuePair> qp = m_rdmaEQ->GetQp(i);
if (qp->GetBytesLeft() == 0)
continue;
t = Min(qp->m_nextAvail, t);
}
if (m_nextSend.IsExpired() && t < Simulator::GetMaximumSimulationTime() && t > Simulator::Now()){
m_nextSend = Simulator::Schedule(t - Simulator::Now(), &QbbNetDevice::DequeueAndTransmit, this);
}
}
}
}
return;
Expand Down