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

Add ACL actions for setting inner MACs #2079

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion inc/saiacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ typedef enum _sai_acl_action_type_t

/** Disable packet trim */
SAI_ACL_ACTION_TYPE_PACKET_TRIM_DISABLE = 0x00000039,

/** Set Packet inner Src MAC Address */
SAI_ACL_ACTION_TYPE_SET_INNER_SRC_MAC = 0x0000003a,

/** Set Packet inner Dst MAC Address */
SAI_ACL_ACTION_TYPE_SET_INNER_DST_MAC = 0x0000003b,
} sai_acl_action_type_t;

/**
Expand Down Expand Up @@ -3303,10 +3309,28 @@ typedef enum _sai_acl_entry_attr_t
*/
SAI_ACL_ENTRY_ATTR_ACTION_PACKET_TRIM_DISABLE = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x39,

/**
* @brief Set Packet Inner Src MAC Address
*
* @type sai_acl_action_data_t sai_mac_t
* @flags CREATE_AND_SET
* @default disabled
*/
SAI_ACL_ENTRY_ATTR_ACTION_SET_INNER_SRC_MAC = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x3a,

/**
* @brief Set Packet Inner Dst MAC Address
*
* @type sai_acl_action_data_t sai_mac_t
* @flags CREATE_AND_SET
* @default disabled
*/
SAI_ACL_ENTRY_ATTR_ACTION_SET_INNER_DST_MAC = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x3b,

/**
* @brief End of Rule Actions
*/
SAI_ACL_ENTRY_ATTR_ACTION_END = SAI_ACL_ENTRY_ATTR_ACTION_PACKET_TRIM_DISABLE,
SAI_ACL_ENTRY_ATTR_ACTION_END = SAI_ACL_ENTRY_ATTR_ACTION_SET_INNER_DST_MAC,

/**
* @brief End of ACL Entry attributes
Expand Down
Loading