]> git.ipfire.org Git - thirdparty/linux.git/commit
net/sched: netem: add per-impairment extended statistics
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 9 May 2026 17:03:26 +0000 (10:03 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 14 May 2026 09:41:30 +0000 (11:41 +0200)
commita2f6ed7b4873288d9e90e69199012857bed4bfa4
tree369900c8c2044abdb18bcc312f8f1149cbce0a0e
parente8be7cdedc41ff28876d66b566770929d03acbb8
net/sched: netem: add per-impairment extended statistics

Add 64-bit counters for each impairment netem applies (delay, loss,
ECN marking, corruption, duplication, reordering) and for skb
allocation failures during enqueue. Exposed through TCA_STATS_APP
as struct tc_netem_xstats.

Counters increment when an impairment is occurs, independent of later
events that may mask its on-wire effect. Added allocation_errors
(similar to sch_fq) to account for when impairment could not be
applied due to memory pressure, etc.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Link: https://patch.msgid.link/20260509171123.307549-6-stephen@networkplumber.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/uapi/linux/pkt_sched.h
net/sched/sch_netem.c