Skip to content

[ACL] Add support for REDIRECT_ORIGINAL_PACKET action - #2318

Merged
tjchadaga merged 1 commit into
opencomputeproject:masterfrom
mobinmohan:redirect_original_packet
Oct 6, 2026
Merged

tjchadaga merged 1 commit into
opencomputeproject:masterfrom
mobinmohan:redirect_original_packet

Conversation

@mobinmohan

@mobinmohan mobinmohan commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Add SAI_ACL_ENTRY_ATTR_ACTION_REDIRECT_ORIGINAL_PACKET action to redirect packets to the destination without modification. This action is used to redirect the original copy of packet to a front panel port/lag.

How is this different from SAI_ACL_ACTION_TYPE_REDIRECT ?

Existing SAI_ACL_ACTION_TYPE_REDIRECT allows packets to go through egress editing(like L2/L3 rewrites) after ACL lookup. However, this new action sends packets to a Port or LAG without modifying them. It skips the egress stages like L2/L3 rewrite and VLAN editing, so the headers stay exactly the same as when they were first received by the switch.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mobinmohan
mobinmohan force-pushed the redirect_original_packet branch 2 times, most recently from 556a3d4 to 0b78706 Compare July 20, 2026 22:26
Comment thread inc/saiacl.h
@tjchadaga tjchadaga added the reviewed PR is discussed in SAI Meeting label Jul 24, 2026
@tjchadaga

Copy link
Copy Markdown
Collaborator

@mobinmohan - could you please help address the comments?

@mobinmohan
mobinmohan force-pushed the redirect_original_packet branch 3 times, most recently from fd7c494 to 5bf13c7 Compare October 2, 2026 21:45

@mobinmohan mobinmohan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Responded to comments.

@mobinmohan

Copy link
Copy Markdown
Contributor Author

@mobinmohan - could you please help address the comments?

@tjchadaga I have responded to the comments.

Add SAI_ACL_ENTRY_ATTR_ACTION_REDIRECT_ORIGINAL_PACKET action
to support redirecting packets to a physical Port or LAG destination
same as received by the switch.

This action sends packets to a Port or LAG without modifying them. It
skips the egress stages like L2/L3 rewrite and VLAN editing, so the
headers stay exactly the same as when they were first received by the
switch.

Signed-off-by: Mobin Mohan <mobinmohan@google.com>
@mobinmohan
mobinmohan force-pushed the redirect_original_packet branch from 5bf13c7 to 7c3b5b4 Compare October 2, 2026 22:10
@tjchadaga

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@tjchadaga
tjchadaga merged commit 0d09b78 into opencomputeproject:master Oct 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed PR is discussed in SAI Meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants