Re: [PATCH net-next 2/2] selftests/tc-testing: Adapt idempotent qdisc notify callback tests to recent fq_codel changes
From: Eric Dumazet <edumazet@google.com>
Date: 2026-05-22 08:08:47
From: Eric Dumazet <edumazet@google.com>
Date: 2026-05-22 08:08:47
On Thu, May 21, 2026 at 8:08 AM Victor Nogueira [off-list ref] wrote:
Commit 150061a20651 ("net/sched: fq_codel: local packets no longer count against memory limit")
made fq_codel not account for local packets in the
memory limit. Since tests a4bb, a4be, a4bf, a4c0, a4c1 were relying on
these packets being accounted so that parent's qlen notify callback was
executed, they broke.
Fix the tests by adding the qdiscs to ifb instead and making it see
mirred packets that came from scapy. That way the packets are accounted
in the memory limit and the parent's qlen notify callback is still
executed.
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Victor Nogueira <redacted>Thanks a lot Victor and Jamal for taking care of this. Acked-by: Eric Dumazet <edumazet@google.com>