traffic-control: Remove unused counters
This commit is contained in:
@@ -132,11 +132,7 @@ CoDelQueueDisc::CoDelQueueDisc ()
|
||||
m_dropping (false),
|
||||
m_recInvSqrt (~0U >> REC_INV_SQRT_SHIFT),
|
||||
m_firstAboveTime (0),
|
||||
m_dropNext (0),
|
||||
m_state1 (0),
|
||||
m_state2 (0),
|
||||
m_state3 (0),
|
||||
m_states (0)
|
||||
m_dropNext (0)
|
||||
{
|
||||
NS_LOG_FUNCTION (this);
|
||||
}
|
||||
@@ -226,7 +222,6 @@ CoDelQueueDisc::OkToDrop (Ptr<QueueDiscItem> item, uint32_t now)
|
||||
{
|
||||
NS_LOG_LOGIC ("Sojourn time has been above target for at least q->interval; it's OK to (possibly) drop packet.");
|
||||
okToDrop = true;
|
||||
++m_state1;
|
||||
}
|
||||
return okToDrop;
|
||||
}
|
||||
@@ -265,7 +260,6 @@ CoDelQueueDisc::DoDequeue (void)
|
||||
}
|
||||
else if (CoDelTimeAfterEq (now, m_dropNext))
|
||||
{
|
||||
m_state2++;
|
||||
while (m_dropping && CoDelTimeAfterEq (now, m_dropNext))
|
||||
{
|
||||
++m_count;
|
||||
@@ -338,7 +332,6 @@ CoDelQueueDisc::DoDequeue (void)
|
||||
OkToDrop (item, now);
|
||||
}
|
||||
m_dropping = true;
|
||||
++m_state3;
|
||||
/*
|
||||
* if min went above target close to when we last went below it
|
||||
* assume that the drop rate that controlled the queue on the
|
||||
@@ -367,7 +360,6 @@ CoDelQueueDisc::DoDequeue (void)
|
||||
{
|
||||
NS_LOG_LOGIC ("Marking due to CeThreshold " << m_ceThreshold.GetSeconds ());
|
||||
}
|
||||
++m_states;
|
||||
return item;
|
||||
}
|
||||
|
||||
|
||||
@@ -212,10 +212,6 @@ private:
|
||||
uint16_t m_recInvSqrt; //!< Reciprocal inverse square root
|
||||
uint32_t m_firstAboveTime; //!< Time to declare sojourn time above target
|
||||
TracedValue<uint32_t> m_dropNext; //!< Time to drop next packet
|
||||
uint32_t m_state1; //!< Number of times packet sojourn goes above target for interval
|
||||
uint32_t m_state2; //!< Number of times we perform next drop while in dropping state
|
||||
uint32_t m_state3; //!< Number of times we enter drop state and drop the fist packet
|
||||
uint32_t m_states; //!< Total number of times we are in state 1, state 2, or state 3
|
||||
};
|
||||
|
||||
} // namespace ns3
|
||||
|
||||
Reference in New Issue
Block a user