Repository navigation
test: Measure how XDP and tc handle tagged transport - #1536
Merged
Merged
Conversation
Contributor
Author
Where things are and how they were checked
|
Add a root-only characterization test for the transport contract's questions Q1 to Q5. It builds veth and 802.3ad bond parents with VLANs 101 and 202 in throwaway network namespaces, attaches small probe programs at XDP and tc, and records which attach modes a VLAN netdevice accepts, where the tag sits at each hook with VLAN offloads on and off, whether the XDP VLAN metadata kfunc separates two VLANs on one parent, what bpf_fib_lookup returns through a VLAN, and what XDP and tc redirects toward a VLAN put on the wire. The probe object is compiled when the test runs, the package has no non-test code, and the test skips unless run as root. Its assertions are positive controls only; VLANPROBE_REPORT writes every observation.
The lab builds untagged bonds only. Add scripts/vlan-transport.sh, which moves sjc's public and fabric sides between 802.1Q and untagged transport at run time for the contract's cells C1 to C4 and C6, points the gateway, NAT and CNI DaemonSets at the chosen interfaces, and reverts to the deployed settings. A plan subcommand prints the changes without a lab. VLAN IDs and parents come from cells.env or PUB_VID and FAB_VID, never from the scripts. Add the row runners that record a cell's baseline with captures on every link, the isolation injector, and the interruption prober, plus Taskfile targets and a README section. The gateway verify scripts and the listener conformance test accept an override for tr's device so they can pin a VIP through a VLAN.
Answer the contract's questions Q1 to Q6 from the kernel probe and from source, labelling each answer, and record the expected result of every packet path on main, the owner of each expected failure, the gaps, and proposed task refinements. Every lab row is deferred to the epic's end-of-epic lab pass and none is reported as passed. Link the report from the evidence archive, the contract and the acceptance matrix. The probe also ran in CI's root unit-test job on kernel 7.0.0. It saw the same tag representation at every hook and on every wire, but its receiver accepted none of the redirected datagrams, including untagged ones, so the Q4 and Q5 answers rest on the wire observations.
privateip
force-pushed
the
feat/issue-1401
branch
from
November 30, 2026 18:31
bb2898c to
97d25ae
Compare
Contributor
Author
Review
Fixed:
Open:
|
This was referenced Nov 30, 2026
privateip
added a commit
that referenced
this pull request
Dec 2, 2026
test: Measure how XDP and tc handle tagged transport
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.
Fixes #1401
Summary
This records how the kernel and today's datapath handle an 802.1Q-tagged transport side, before the epic changes any forwarding code. A root-only probe test measured the kernel. A baseline report answers the contract's six open questions, labelling each answer probe-measured or source-inferred, and maps each expected failure to #1402, #1403 or #1404. CI's root job reran the probe on kernel 7.0.0 and matched every tag observation, but its receiver accepted none of the redirected test packets, so the redirect answers rest on what reached the wire. Lab tooling for tagged sjc cells is included but has not run; the epic moved every lab row to the end-of-epic pass in #1405.
Test plan