|
Lines 399-404
CoDelQueue::DoDequeue (void)
|
Link Here
|
|---|
|
| 399 |
// hence the while loop. |
399 |
// hence the while loop. |
| 400 |
NS_LOG_LOGIC ("Sojourn time is still above target and it's time for next drop; dropping " << p); |
400 |
NS_LOG_LOGIC ("Sojourn time is still above target and it's time for next drop; dropping " << p); |
| 401 |
Drop (p); |
401 |
Drop (p); |
|
|
402 |
|
| 403 |
// p was in queue, trace dequeue and update stats manually |
| 404 |
m_traceDequeue (p); |
| 405 |
m_nBytes -= p->GetSize (); |
| 406 |
m_nPackets--; |
| 407 |
|
| 402 |
++m_dropCount; |
408 |
++m_dropCount; |
| 403 |
++m_count; |
409 |
++m_count; |
| 404 |
NewtonStep (); |
410 |
NewtonStep (); |
|
Lines 444-449
CoDelQueue::DoDequeue (void)
|
Link Here
|
|---|
|
| 444 |
NS_LOG_LOGIC ("Sojourn time goes above target, dropping the first packet " << p << " and entering the dropping state"); |
450 |
NS_LOG_LOGIC ("Sojourn time goes above target, dropping the first packet " << p << " and entering the dropping state"); |
| 445 |
++m_dropCount; |
451 |
++m_dropCount; |
| 446 |
Drop (p); |
452 |
Drop (p); |
|
|
453 |
|
| 454 |
// p was in queue, trace the dequeue and update stats manually |
| 455 |
m_traceDequeue (p); |
| 456 |
m_nBytes -= p->GetSize (); |
| 457 |
m_nPackets--; |
| 458 |
|
| 447 |
if (m_packets.empty ()) |
459 |
if (m_packets.empty ()) |
| 448 |
{ |
460 |
{ |
| 449 |
m_dropping = false; |
461 |
m_dropping = false; |