Repository navigation
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
Open
gotc: qdisc/class writes for drr, qfq, hfsc, ets, mqprio, taprio, multiq, cbs, etf (increment 18)#360randomizedcoder wants to merge 9 commits into
randomizedcoder wants to merge 9 commits into
Conversation
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>
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.
Follows #356 (merged).
Summary
AttrBuilder.BeginNestDatafor mqprio's stretched TCA_OPTIONS. Byte-identical to tc's captures.parse_qopt/parse_coptfor 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).docs/netlink/upstream/iproute2-tc-write.md(all still in upstream main).Tests
TestGotcSchedWrite(34 rows),TestBuildTcSchedWrite, alloc pin + benchmark.internal/gotccoverage 84.6%.go test ./...,test-go-race(one flake in unrelatedpkg/xtcp TestTCPDest_writeTimeout, passed on retry), both golangci configs, netlink-audit, kernel-citation-audit.🤖 Generated with Claude Code