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] Update dash flow and dash tunnel #2093

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

jimmyzhai
Copy link
Contributor

  1. Update SAI of dash flow to align with its p4 table in dash-pipeline
  2. Update SAI of dash tunnel to align with its p4 table in dash-pipeline

Comment on lines 192 to 212
SAI_DASH_FLOW_ACTION_NONE = 0,

SAI_DASH_FLOW_ACTION_ENCAP_U0 = 1,

SAI_DASH_FLOW_ACTION_ENCAP_U1 = 2,

SAI_DASH_FLOW_ACTION_SET_SMAC = 4,

SAI_DASH_FLOW_ACTION_SET_DMAC = 8,

SAI_DASH_FLOW_ACTION_SNAT = 16,

SAI_DASH_FLOW_ACTION_DNAT = 32,

SAI_DASH_FLOW_ACTION_NAT46 = 64,

SAI_DASH_FLOW_ACTION_NAT64 = 128,

SAI_DASH_FLOW_ACTION_SNAT_PORT = 256,

SAI_DASH_FLOW_ACTION_DNAT_PORT = 512,
Copy link
Collaborator

Choose a reason for hiding this comment

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

mayeb use arrows << like other to easy spot which bit is turned on?

Copy link
Contributor

Choose a reason for hiding this comment

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

agree

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines +40 to +41
#include <saiexperimentaldashtunnel.h>
#include <saiexperimentaldashha.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not? Here the list has included saiexperimentaldashappliance.h, saiexperimentaldashflow.h, saiexperimentaldashmeter.h, saiexperimentaldashvip.h, etc. The list is automatically updated while make sai-headers in DASH to have header files of all dash objects.

Copy link
Collaborator

Choose a reason for hiding this comment

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

since no item is used from included files, so including them is redundant

@kcudnik kcudnik merged commit 8f500eb into opencomputeproject:master Oct 28, 2024
3 checks passed
erohsik pushed a commit to erohsik/SAI that referenced this pull request Nov 7, 2024
Update SAI of dash flow to align with its p4 table in dash-pipeline
Update SAI of dash tunnel to align with its p4 table in dash-pipeline
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.

3 participants