Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
Signed-off-by: Marian Pritsak <[email protected]>
  • Loading branch information
marian-pritsak committed Jan 16, 2025
1 parent 2899ab0 commit 62e7823
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
12 changes: 6 additions & 6 deletions inc/saiacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ typedef enum _sai_acl_action_type_t
/** Next Chain Group */
SAI_ACL_ACTION_TYPE_CHAIN_REDIRECT = 0x00000038,

/** Disable packet trimming */
SAI_ACL_ACTION_TYPE_DISABLE_TRIMMING = 0x00000039,
/** Disable packet trim */
SAI_ACL_ACTION_TYPE_PACKET_TRIM_DISABLE = 0x00000039,
} sai_acl_action_type_t;

/**
Expand Down Expand Up @@ -3293,20 +3293,20 @@ typedef enum _sai_acl_entry_attr_t
SAI_ACL_ENTRY_ATTR_ACTION_CHAIN_REDIRECT = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x38,

/**
* @brief Disable packet trimming for a given match condition.
* @brief Disable packet trim for a given match condition.
*
* This rule takes effect only when packet trimming is configured on a buffer profile of a queue to which a packet belongs.
* This rule takes effect only when packet trim is configured on a buffer profile of a queue to which a packet belongs.
*
* @type sai_acl_action_data_t bool
* @flags CREATE_AND_SET
* @default disabled
*/
SAI_ACL_ENTRY_ATTR_ACTION_DISABLE_TRIMMING = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x39,
SAI_ACL_ENTRY_ATTR_ACTION_PACKET_TRIM_DISABLE = SAI_ACL_ENTRY_ATTR_ACTION_START + 0x39,

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

/**
* @brief End of ACL Entry attributes
Expand Down
2 changes: 1 addition & 1 deletion inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -3353,7 +3353,7 @@ typedef enum _sai_port_stat_t
SAI_PORT_STAT_IF_IN_FEC_CORRECTED_BITS,

/** Packets trimmed due to failed shared buffer admission [uint64_t] */
SAI_PORT_STAT_TRIMMED_PACKETS,
SAI_PORT_STAT_TRIM_PACKETS,

/** Port stat in drop reasons range start */
SAI_PORT_STAT_IN_DROP_REASON_RANGE_BASE = 0x00001000,
Expand Down
2 changes: 1 addition & 1 deletion inc/saiqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ typedef enum _sai_queue_stat_t
SAI_QUEUE_STAT_DELAY_WATERMARK_NS = 0x00000027,

/** Packets trimmed due to failed admission [uint64_t] */
SAI_QUEUE_STAT_TRIMMED_PACKETS = 0x00000028,
SAI_QUEUE_STAT_TRIM_PACKETS = 0x00000028,

/** Custom range base value */
SAI_QUEUE_STAT_CUSTOM_RANGE_BASE = 0x10000000
Expand Down
26 changes: 13 additions & 13 deletions inc/saiswitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -613,15 +613,15 @@ typedef enum _sai_switch_hostif_oper_status_update_mode_t
/**
* @brief Attribute data for SAI_SWITCH_ATTR_HOSTIF_OPER_STATUS_UPDATE_MODE.
*/
typedef enum _sai_packet_trimming_queue_resolution_mode_t
typedef enum _sai_packet_trim_queue_resolution_mode_t
{
/**
* @brief Static queue resolution.
*
* In this mode, a new queue for the trimmed packet is set directly
* by the application.
*/
SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_STATIC,
SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_STATIC,

/**
* @brief Dynamic queue resolution.
Expand All @@ -630,9 +630,9 @@ typedef enum _sai_packet_trimming_queue_resolution_mode_t
* using QOS maps, applied to a new DSCP value that was provided
* for a trimmed packet.
*/
SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_DYNAMIC,
SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_DYNAMIC,

} sai_packet_trimming_queue_resolution_mode_t;
} sai_packet_trim_queue_resolution_mode_t;

/**
* @brief Attribute Id in sai_set_switch_attribute() and
Expand Down Expand Up @@ -3155,35 +3155,35 @@ typedef enum _sai_switch_attr_t
* @flags CREATE_AND_SET
* @default 128
*/
SAI_SWITCH_ATTR_PACKET_TRIMMING_SIZE,
SAI_SWITCH_ATTR_PACKET_TRIM_SIZE,

/**
* @brief New packet trimming DSCP value
* @brief New packet trim DSCP value
*
* @type sai_uint8_t
* @flags CREATE_AND_SET
* @default 0
*/
SAI_SWITCH_ATTR_PACKET_TRIMMING_DSCP_VALUE,
SAI_SWITCH_ATTR_PACKET_TRIM_DSCP_VALUE,

/**
* @brief Queue mapping mode for a trimmed packet
*
* @type sai_packet_trimming_queue_resolution_mode_t
* @type sai_packet_trim_queue_resolution_mode_t
* @flags CREATE_AND_SET
* @default SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_STATIC
* @default SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_STATIC
*/
SAI_SWITCH_ATTR_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE,
SAI_SWITCH_ATTR_PACKET_TRIM_QUEUE_RESOLUTION_MODE,

/**
* @brief New packet trimming queue index
* @brief New packet trim queue index
*
* @type sai_uint8_t
* @flags CREATE_AND_SET
* @default 0
* @validonly SAI_SWITCH_ATTR_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE == SAI_PACKET_TRIMMING_QUEUE_RESOLUTION_MODE_STATIC
* @validonly SAI_SWITCH_ATTR_PACKET_TRIM_QUEUE_RESOLUTION_MODE == SAI_PACKET_TRIM_QUEUE_RESOLUTION_MODE_STATIC
*/
SAI_SWITCH_ATTR_PACKET_TRIMMING_QUEUE_INDEX,
SAI_SWITCH_ATTR_PACKET_TRIM_QUEUE_INDEX,

/**
* @brief End of attributes
Expand Down

0 comments on commit 62e7823

Please sign in to comment.