Skip to content

gotc: print the AQM and leaf qdisc kinds (increment 16) - #353

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

randomizedcoder merged 6 commits into
mainfrom
gotc/aqm

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Summary

gotc now prints the last 13 qdisc kinds that tc 7.2.0 links: red, gred, choke, sfb, codel, pie, fq_pie, hhf, cake, cake_mq, dualpi2, plug and skbprio. Every qdisc kind tc links now prints, so errKind and tcBuiltinKinds are removed and readbackSkips is empty.

  • 16C (V033): new tcaqm capture space with 132 rows over 26 fixtures. Two batches on one boot agree.
  • 16P (V034): pkg/xtcpnl/xtcpnl_tc_aqm.go decodes each kind's options and xstats at C's widths. Inputs that would make tc crash, hang or write out of bounds become errors.
  • 16R (V035): new printers in q_red.go, q_gred.go, q_aqm.go, q_cake.go and q_dualpi2.go, each following tc's printer line by line.
    • Corpus: tcaqm replays 129/132 rows byte for byte. The other 3 are refused writes.
    • tdc: readbackRendered goes from 1114 to 1250, and all 136 readbacks that were skipped now render.
    • TestGotcAqm has 44 rows. The 10 mutants are all killed. Coverage is 86.1%.
  • 16B (DOC009): findings in docs/netlink/upstream/iproute2-tc-aqm.md: Q66–Q89 and kernel notes K32–K43. All are still present in current iproute2. Not submitted to netdev.
  • 16L (V036): live diff on the workbench: 129/132 rows identical. The other 3 are the planned write refusals. tc's live output still matches the captures, with no drift.

Test plan

  • go test ./...
  • nix build .#checks.x86_64-linux.test-go-race
  • both golangci configs report 0 issues; netlink-audit and kernel-citation-audit are clean (16P)
  • live workbench diff (V036)

🤖 Generated with Claude Code

randomizedcoder and others added 6 commits November 26, 2026 19:55
…discs (16C, V033)

red, gred, choke, sfb, codel, pie, fq_pie, hhf, cake, cake_mq, dualpi2,
plug and skbprio over 26 fixtures, each command plain and -j, two
batches and four refusals. Two batches on one boot agree on all 132.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…V034)

red, gred, choke, sfb, codel, pie, fq_pie, hhf, cake, cake_mq, dualpi2,
plug and skbprio, at tc's read widths; gred and cake xstats are pointers
to keep TcQopt and TcXstats small.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
red, choke, gred, sfb, codel, pie, fq_pie, hhf, cake, cake_mq, dualpi2,
plug and skbprio, each following its tc 7.2.0 printer. Every kind tc links
now prints, so readbackSkips is empty and errKind is gone; filter show
block runs red_has_block instead of refusing red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DOC009)

Not submitted to netdev.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s reads (PR 353 review)

tc's text tin table reads a row only when tin 0 has the attribute, so
a short field in a later tin that tin 0 lacks is never read; JSON reads
each tin's own. Keep each tin's short mask and refuse per mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@randomizedcoder
randomizedcoder merged commit be6c304 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