swift fix cwnd start from 0

This commit is contained in:
cyp0633 2024-04-07 21:10:12 +08:00
parent c3a2ca80c1
commit f76561ba1c
Signed by: cyp0633
GPG Key ID: CF90D09FB1FDCE45
2 changed files with 4 additions and 3 deletions

View File

@ -2056,7 +2056,8 @@ RdmaHw::HandleAckSwift(Ptr<RdmaQueuePair> qp, Ptr<Packet> p, CustomHeader& ch)
qp->SetWin((uint32_t)cwnd);
qp->swift.m_real_win = cwnd;
}
std::cout << "[SWIFT] cwnd: " << cwnd << ", delay: " << fabric_delay << std::endl;
std::cout << "[SWIFT] node: " << m_node->GetId() << ", cwnd: " << cwnd
<< ", delay: " << fabric_delay << std::endl;
}
// calculate target fabric delay

View File

@ -39,7 +39,7 @@ RdmaQueuePair::RdmaQueuePair(uint16_t pg,
snd_nxt = snd_una = 0;
m_pg = pg;
m_ipid = 0;
m_win = 0;
m_win = 10000;
m_baseRtt = 0;
m_max_rate = 0;
m_var_win = false;
@ -85,7 +85,7 @@ RdmaQueuePair::RdmaQueuePair(uint16_t pg,
swift.m_curRate = 0;
swift.m_retransmit_cnt = 0;
swift.m_pacing_delay = 0;
swift.m_real_win = 0;
swift.m_real_win = 10000;
}
void