Skip to content

gotc: classful and scheduling qdisc kinds (increment 15) - #351

Merged
randomizedcoder merged 6 commits into
mainfrom
gotc/sched
Nov 27, 2026
Merged

randomizedcoder merged 6 commits into
mainfrom
gotc/sched

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Increment 15: gotc prints the classful and scheduling qdisc kinds: drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs and etf. The AQM/leaf kinds follow in increment 16.

Commits

  • 15C (V029) tcsched capture space: 87 rows over 12 fixtures. Two batches on one boot agree on every row.
  • 15P (V030) xtcpnl decoders for the nine kinds, plus ParseTcCopt (hfsc and ets class options differ from their qdisc options). Every tcsched message decodes; allocation budgets pinned (mqprio 17 → 1). xtcpnl coverage 92.8%. netlink-audit and kernel-citation-audit clean.
  • 15R (V031) gotc printers (q_sched.go, q_hfsc.go, q_ets.go, q_mqprio.go, q_taprio.go). All 87 rows replay byte for byte; tdc readbacks rendered 1025 → 1114. Printers can now refuse input tc reads unchecked, like the action printers. -d size table (TCA_STAB) ported. 10/10 mutants killed; gotc coverage 85.1%.
  • 15B (DOC008) docs/netlink/upstream/iproute2-tc-sched.md: Q37–Q65 and kernel notes K24–K31. Recorded only; not submitted to netdev.
  • 15L (V032) live diff on the workbench: 83/87 identical, the other 4 are the planned write refusals. Live tc matched the corpus on 87/87.

Verification

  • go test ./... passes.
  • nix build --no-link .#checks.x86_64-linux.test-go-race passes.
  • golangci-lint (comprehensive config) clean on the touched packages.

🤖 Generated with Claude Code

randomizedcoder and others added 6 commits November 26, 2026 16:37
… qdisc kinds (15C, V029)

87 rows over twelve fixtures (drr, qfq, hfsc, ets, cbs/etf under prio,
and multiq, mqprio, taprio on an eight-queue dummy), every positive
plain and -j, two batches, and five kernel refusals. Two batches on one
boot agree on stdout, stderr and rc for all 87 rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…5P, V030)

drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs and etf options and
xstats, read as their tc/q_*.c printers read them; ParseTcCopt for the
class options hfsc and ets lay out differently. Every message of the
nine kinds in the corpus decodes. Small entry nests parse into a stack
table, so mqprio's 16 tc entries cost no allocation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d etf (15R, V031)

Each printer follows its tc/q_*.c at v7.2.0, quirks kept. Reads tc makes
unchecked are refused through refuseKind, taken by print_qdisc and
print_class after each hook. print_size_table is ported for two tdc
taprio readbacks under -d. The 87 tcsched rows replay byte for byte;
readbacks rendered go from 1025 to 1114; 10/10 mutants killed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gs (15B, DOC008)

Q37-Q63 confirmed against the tcsched corpus at v7.2.0, all present at
HEAD; new Q64 (ets list walks) and Q65 (an explicit mqprio dcb mode
prints nothing); kernel notes K24-K31, K27, K28 and K30 corrected from
the plan. Unit rows for Q62 and Q65. Recorded only; not sent to netdev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sals (15L, V032)

gotc at f64f6d0 beside tc 7.2.0 on the workbench: 83 of 87 rows
identical on stdout, stderr and rc; ng-001..ng-004 are the refused
writes. Live tc matched the corpus on all 87. VM left clean and off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tcEntries discarded U32's ok, so a present mqprio/taprio FP or taprio
MAX_SDU shorter than a u32 decoded as zero, advanced the highest-index
marker, and could overwrite an earlier valid value for the same class.
It now returns ErrTcShort for a short index, MAX_SDU or FP, checked
before the slot is touched, matching gotc's printer, which refuses the
same fields. A missing index or one of 16 or more is still skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@randomizedcoder
randomizedcoder merged commit 3a08205 into main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant