Skip to content
Open
Show file tree
Hide file tree
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
28 changes: 26 additions & 2 deletions inc/saiacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1588,10 +1588,19 @@ typedef enum _sai_acl_table_attr_t
*/
SAI_ACL_TABLE_ATTR_FIELD_NEXT_HOP_USER_META = SAI_ACL_TABLE_ATTR_FIELD_START + 0x162,

/**
* @brief Router Interface User metadata
*
* @type bool
* @flags CREATE_ONLY
* @default false
*/
SAI_ACL_TABLE_ATTR_FIELD_ROUTER_INTERFACE_USER_META = SAI_ACL_TABLE_ATTR_FIELD_START + 0x163,

/**
* @brief End of ACL Table Match Field
*/
SAI_ACL_TABLE_ATTR_FIELD_END = SAI_ACL_TABLE_ATTR_FIELD_NEXT_HOP_USER_META,
SAI_ACL_TABLE_ATTR_FIELD_END = SAI_ACL_TABLE_ATTR_FIELD_ROUTER_INTERFACE_USER_META,

/**
* @brief ACL table entries associated with this table.
Expand Down Expand Up @@ -2728,10 +2737,25 @@ typedef enum _sai_acl_entry_attr_t
*/
SAI_ACL_ENTRY_ATTR_FIELD_NEXT_HOP_USER_META = SAI_ACL_ENTRY_ATTR_FIELD_START + 0x162,

/**
* @brief Router Interface User metadata
*
* Value must be in the range defined in
* #SAI_SWITCH_ATTR_ROUTER_INTERFACE_META_DATA_INGRESS_RANGE
* SAI_ROUTER_INTERFACE_ATTR_META_DATA_INGRESS in SAI_ACL_STAGE_POST_INGRESS stage
* or #SAI_SWITCH_ATTR_ROUTER_INTERFACE_META_DATA_EGRESS_RANGE
* SAI_ROUTER_INTERFACE_ATTR_META_DATA_EGRESS in SAI_ACL_STAGE_EGRESS stage
*
* @type sai_acl_field_data_t sai_uint32_t
* @flags CREATE_AND_SET
* @default disabled
*/
SAI_ACL_ENTRY_ATTR_FIELD_ROUTER_INTERFACE_USER_META = SAI_ACL_ENTRY_ATTR_FIELD_START + 0x163,

/**
* @brief End of Rule Match Fields
*/
SAI_ACL_ENTRY_ATTR_FIELD_END = SAI_ACL_ENTRY_ATTR_FIELD_NEXT_HOP_USER_META,
SAI_ACL_ENTRY_ATTR_FIELD_END = SAI_ACL_ENTRY_ATTR_FIELD_ROUTER_INTERFACE_USER_META,

/*
* Actions [sai_acl_action_data_t]
Expand Down
22 changes: 22 additions & 0 deletions inc/sairouterinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,28 @@ typedef enum _sai_router_interface_attr_t
*/
SAI_ROUTER_INTERFACE_ATTR_MY_MAC,

/**
* @brief User based Meta Data Ingress
*
* Value Range #SAI_SWITCH_ATTR_ROUTER_INTERFACE_META_DATA_INGRESS_RANGE for Ingress stage.
*
* @type sai_uint32_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_ROUTER_INTERFACE_ATTR_META_DATA_INGRESS,

/**
* @brief User based Meta Data Egress
*
* Value Range #SAI_SWITCH_ATTR_ROUTER_INTERFACE_META_DATA_EGRESS_RANGE for Egress stage.
*
* @type sai_uint32_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_ROUTER_INTERFACE_ATTR_META_DATA_EGRESS,

/**
* @brief End of attributes
*/
Expand Down
16 changes: 16 additions & 0 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -3468,6 +3468,22 @@ typedef enum _sai_switch_attr_t
*/
SAI_SWITCH_ATTR_NEXT_HOP_USER_META_DATA_RANGE,

/**
* @brief Ingress Router Interface user-based meta data range
*
* @type sai_u32_range_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_ROUTER_INTERFACE_META_DATA_INGRESS_RANGE,

/**
* @brief Egress Router Interface user-based meta data range
*
* @type sai_u32_range_t
* @flags READ_ONLY
*/
SAI_SWITCH_ATTR_ROUTER_INTERFACE_META_DATA_EGRESS_RANGE,

/**
* @brief End of attributes
*/
Expand Down