Skip to content

feat: Preserve DSCP and ECN if present of ingress#1271

Open
sergeymatov wants to merge 1 commit intomainfrom
pr/smatov/dscp-ecn-meta
Open

feat: Preserve DSCP and ECN if present of ingress#1271
sergeymatov wants to merge 1 commit intomainfrom
pr/smatov/dscp-ecn-meta

Conversation

@sergeymatov
Copy link
Contributor

  • on ingress decapsulation routine we preserve DSCP and ECN fields
  • on egress fetch saved from metadata DSCP and ECN values if present and reflect it on outer header

Signed-off-by: Sergey Matov <sergey.matov@githedgehog.com>
@sergeymatov sergeymatov requested a review from a team as a code owner February 9, 2026 09:47
@sergeymatov sergeymatov requested review from daniel-noland and removed request for a team February 9, 2026 09:47
Copy link
Contributor

@mvachhar mvachhar left a comment

Choose a reason for hiding this comment

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

Just a few comments to address. It may be that no changes are needed with a short explanation, or some changes might be needed. In particular, how much harder is it to just add IPv6 for this? Also, are there any tests that we can add (unit tests in particular) to make sure we are doing the right thing here?

self.meta.dscp = Some(Dscp::from(ipv4.dscp()));
self.meta.ecn = Some(Ecn::from(ipv4.ecn()));
} else {
// Not IPv4 underlay - unsupported now
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not extract these for v6 as well? How much harder is that?

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.

2 participants