Skip to content

gotc: qdisc/class writes for drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs, etf (increment 18) - #360

Open
randomizedcoder wants to merge 9 commits into
mainfrom
gotc/qwrite2
Open

randomizedcoder wants to merge 9 commits into
mainfrom
gotc/qwrite2

Conversation

@randomizedcoder

@randomizedcoder randomizedcoder commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Follows #356 (merged).

Summary

  • 18P: Append encoders for hfsc, mqprio, cbs, etf, multiq; AttrBuilder.BeginNestData for mqprio's stretched TCA_OPTIONS. Byte-identical to tc's captures.
  • 18W: gotc parse_qopt/parse_copt for the nine kinds, line for line with iproute2 v7.2.0. tc's memory overruns/crash are refused by name: W26 (17 ets quanta), W28/W29 (mqprio/taprio fp, max-sdu > 16), W38 (hfsc rate 0, SIGFPE).
  • 18B: W26–W41 and K46 in docs/netlink/upstream/iproute2-tc-write.md (all still in upstream main).
  • 18L: live diff on the workbench, 114/114 identical; 25 named kernel-answer exceptions.

Tests

  • tcswrite corpus (114 rows) replays byte for byte; tdc oracle 173 → 273 writes matched (100/101 for these kinds; W26 refused).
  • TestGotcSchedWrite (34 rows), TestBuildTcSchedWrite, alloc pin + benchmark.
  • 8/8 mutants killed; internal/gotc coverage 84.6%.
  • go test ./..., test-go-race (one flake in unrelated pkg/xtcp TestTCPDest_writeTimeout, passed on retry), both golangci configs, netlink-audit, kernel-citation-audit.

🤖 Generated with Claude Code

randomizedcoder and others added 9 commits November 27, 2026 22:35
The qdisc and class writes of increment 15's nine kinds (drr, qfq, hfsc,
ets, mqprio, taprio, multiq, cbs, etf): every add body, change, replace
and delete, the classful kinds' classes, a batch, the plan's leads
(W27, W30-W36, W39-W41, W3) and 45 refusals, each write with a readback.
Two batches on one boot agree on every row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Append for the multiq, hfsc, mqprio, cbs and etf structs, and an
AttrBuilder nest for q_mqprio's stretched TCA_OPTIONS. Nine requests
equal tc's tcswrite captures byte for byte (V043).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
parse_qopt for drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs and etf,
and parse_copt for drr, qfq, hfsc and ets, line for line from v7.2.0.
All 114 tcswrite rows replay byte for byte; tdc matches 273 writes (100
of these kinds' 101; W26 is known). W26, W28, W29 and W38, where tc
overruns memory or crashes, are refused by name (V044).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every lead is present at HEAD (main 35033e4713fe). W38's SIGFPE was
checked on the host's tc 7.2.0. K46 is corrected: multiq succeeds on
change because it has a change op, not because it sends no options
(DOC011).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gotc 18W lint)

gocyclo, goconst and ineffassign findings in the 18W parsers; behaviour
unchanged (tcswrite and tdc replay as before).

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (gotc 18W lint)

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@randomizedcoder
randomizedcoder changed the base branch from gotc/qwrite to main November 28, 2026 19:04
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