-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hello all,
I tried to count the numbers of drops in your dualpi2 aqm located at this link : https://github.com/L4STeam/linux/blob/testing/net/sched/sch_dualpi2.c
For this I looked in the source code and I saw this parameter named cnt in this struct
struct { /* Deferred drop statistics */ u32 cnt; /* Packets dropped */ u32 len; /* Bytes dropped */ } deferred_drops;
For me this variable counts the total number of drop in both queues (classic and l4s) in the dualpi2 AQM
when a packet is dropped.
But what I remarked is that this variable that must count drop is incremented only one time ++q->deferred_drops.cnt; at line 596 of the dualpi2's source code in the dequeue function static struct sk_buff *dualpi2_qdisc_dequeue(struct Qdisc *sch).
What I don't understand is why the drops counters q->deferred_drops.cnt is incremented only one time ?
Packet dropping does not happens when there are packet to enqueue and queue limit is reached or drop_early is enable ?
If I mistake, can you show me in the source code where packet dropping happens , please?
Regards