Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dash-p4] Correctly set meta.dst_ip_addr for underlay routing lookup #658

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

jimmyzhai
Copy link
Collaborator

The key of underlay routing lookup is meta.dst_ip_addr. It should be updated to underlay destination IP only if underlay1/0 encapsulation is taken.

@mssonicbld
Copy link

/azp run

Copy link

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

@@ -300,7 +300,12 @@ control dash_ingress(
routing_action_apply.apply(hdr, meta);

/* Underlay routing */
meta.dst_ip_addr = (bit<128>)hdr.u0_ipv4.dst_addr;
if (meta.routing_actions & dash_routing_actions_t.ENCAP_U1 != 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi Junhua, do you mind to help add a small comment here that explains the dst_ip_addr will be used as key for underlay routing lookup?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated the comment

@mssonicbld
Copy link

/azp run

Copy link

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

@KrisNey-MSFT
Copy link
Collaborator

Ok to merge per Community call 1/15/2025

@KrisNey-MSFT KrisNey-MSFT merged commit 3677225 into sonic-net:main Jan 15, 2025
4 checks passed
@jimmyzhai jimmyzhai deleted the underlay_route branch January 16, 2025 01:32
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