Skip to content

Conversation

@f4ni
Copy link
Collaborator

@f4ni f4ni commented Aug 12, 2025

Summary
This PR updates the ENCAP_U1 functionality in the DASH pipeline by adding the missing deparser emission for u1_* headers and IPv4 checksum update for u1_ipv4.

These updates were made while fixing the saidashflow test case for double encapsulation (ENCAP_U0 | ENCAP_U1), which was failing due to incomplete U1 packet output.

Background
The pipeline’s logic for ENCAP_U1 already existed, but packets generated for ENCAP_U0 | ENCAP_U1 flows were missing the U1 encapsulation layer because:

  • The deparser did not emit u1_* headers.
  • IPv4 checksum calculation did not cover for u1_ipv4

As a result, the FlowHitActionEncapU0EncapU1 test failed and was disabled.

…ecksum

update

- Added emission of all u1_* headers in dash_deparser so U1 encapsulation is
  serialized into the outgoing packet.
- Added IPv4 checksum update for hdr.u1_ipv4 alongside hdr.u0_ipv4.
- Restored and fixed saidashflow-FlowHitActionEncapU0EncapU1 test to validate
  double encapsulation packet formation.

ENCAP_U1 logic was missing components (header emission and checksum) prevented
correct packet output. This change updates the ENCAP_U1 functionality and also
updates the test coverage.

Signed-off-by: Farhan Tariq <[email protected]>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 12, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 683 in repo sonic-net/DASH

@KrisNey-MSFT KrisNey-MSFT requested review from prsunny and r12f August 13, 2025 00:11
@KrisNey-MSFT
Copy link
Collaborator

Thank you! Requesting @prsunny and / or @r12f to review please.

@prsunny prsunny requested a review from marian-pritsak August 13, 2025 22:43
@KrisNey-MSFT
Copy link
Collaborator

hi @prsunny and / or @r12f - could we have a Reviewer for this one please?

@KrisNey-MSFT
Copy link
Collaborator

hi @marian-pritsak and/or @oleksandrivantsiv - would you be able to review this one by chance please?

@KrisNey-MSFT
Copy link
Collaborator

hi @marian-pritsak - would you be able to do a review for @prsunny for this one pls?

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.

4 participants