Skip to content

Comments

[202412][PR:22322] Add trimmed packet size margin#1033

Merged
r12f merged 1 commit intoAzure:202412from
r12f:cherry-pick-22322
Feb 22, 2026
Merged

[202412][PR:22322] Add trimmed packet size margin#1033
r12f merged 1 commit intoAzure:202412from
r12f:cherry-pick-22322

Conversation

@r12f
Copy link
Contributor

@r12f r12f commented Feb 20, 2026

Sync PR #22322 from sonic-net/sonic-mgmt to 202412.
Original PR: sonic-net/sonic-mgmt#22322

What is the motivation for this PR?
In some cases a small difference in the expected trimmed packet size has been observed (+/- 4 bytes). The trimmed packet's size depends on the asic's cell size, minus any metadata contained in the first cell. Since the variable number of trailing bytes is part of the packet's payload we can ignore this difference and add a margin to any size checks.

How did you do it?
Expected packets are now matched by prefix minus the margin size, and an additional assertion was added that the size is within +/- the packet size margin value.

How did you verify/test it?
Manually tested
@r12f r12f added the automerge label Feb 20, 2026
@r12f
Copy link
Contributor Author

r12f commented Feb 20, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rick-arista
Copy link

LGTM

Copy link
Contributor Author

@r12f r12f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bypassing CI, due to pipeline being flaky.

@r12f r12f merged commit b49c011 into Azure:202412 Feb 22, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants