Repository navigation
gotc: classful and scheduling qdisc kinds (increment 15) - #351
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
tcschedcapture space: 87 rows over 12 fixtures. Two batches on one boot agree on every row.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.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.-dsize table (TCA_STAB) ported. 10/10 mutants killed; gotc coverage 85.1%.docs/netlink/upstream/iproute2-tc-sched.md: Q37–Q65 and kernel notes K24–K31. Recorded only; not submitted to netdev.Verification
go test ./...passes.nix build --no-link .#checks.x86_64-linux.test-go-racepasses.🤖 Generated with Claude Code