-
Notifications
You must be signed in to change notification settings - Fork 493
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
Conversation
jimmyzhai
commented
Oct 24, 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
Signed-off-by: Junhua Zhai <[email protected]>
experimental/saitypesextensions.h
Outdated
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
#include <saiexperimentaldashtunnel.h> | ||
#include <saiexperimentaldashha.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for this
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Signed-off-by: Junhua Zhai <[email protected]>
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